- initial;
This commit is contained in:
15
src/store/actions.js
Normal file
15
src/store/actions.js
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
export const actionsAlpha = (set, get, api) => ({
|
||||
setAsyncRequest: () => {
|
||||
const num = get.isAsyncRequest();
|
||||
set.isAsyncRequest(num + 1);
|
||||
},
|
||||
unsetAsyncRequest: () => {
|
||||
const num = get.isAsyncRequest();
|
||||
set.isAsyncRequest(num - 1 < 0 ? 0 : num - 1);
|
||||
},
|
||||
})
|
||||
|
||||
export const actionsBeta = (set, get, api) => ({
|
||||
});
|
||||
Reference in New Issue
Block a user