Search
Ctrl + K
Gathering detailed insights and metrics for vuex-pender
vuex-action-pender
vuex-action-pender for async work inspired by velopert/redux-pender
Overview
Readme
Downloads
Dependencies
Vulnerabilities
OpenSSF Scorecard
npm install vuex-pender
Typescript
Module System
Total Downloads
0
Last Day
Last Week
Last Month
Last Year
Latest Version
1.0.2
Package Id
vuex-pender@1.0.2
Unpacked Size
28.20 kB
Size
7.52 kB
File Count
25
Cumulative downloads
0%
NaN
Compared to previous day
Compared to previous week
Compared to previous month
Compared to previous year
17
wrapper to write async vuex action simply and clean
npm i vuex-pender
1import { createPender } from '../src/pender'; 2 3 new Vuex.Store({ 4 actions: { 5 'ACTION NAME': createPender({ 6 'action': (store, payload) => { 7 return new Promise((resolve, reject)=>{ 8 resolve() 9 reject() 10 }) 11 }, 12 'pending': (store, response, ) => { 13 }, 14 'success': (store, response, )=> { 15 16 }, 17 'fail': (store, response, )=> { 18 }, 19 }), 20 21 } 22 })
No vulnerabilities found.
No security vulnerabilities found.