refactor: effect signature
This commit is contained in:
parent
527ef24192
commit
6526f931e6
|
@ -6,7 +6,7 @@ export default {
|
||||||
* Define side-effects to run against Redux actions.
|
* Define side-effects to run against Redux actions.
|
||||||
*/
|
*/
|
||||||
'@flecks/redux.effects': () => ({
|
'@flecks/redux.effects': () => ({
|
||||||
someActionName: (store, action, flecks) => {
|
someActionName: (store, action) => {
|
||||||
// Runs when `someActionName` actions are dispatched.
|
// Runs when `someActionName` actions are dispatched.
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default (flecks) => {
|
||||||
};
|
};
|
||||||
return (store) => (next) => (action) => {
|
return (store) => (next) => (action) => {
|
||||||
const result = next(action);
|
const result = next(action);
|
||||||
setTimeout(() => effect(store, action, flecks), 0);
|
setTimeout(() => effect(store, action), 0);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user