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.
|
||||
*/
|
||||
'@flecks/redux.effects': () => ({
|
||||
someActionName: (store, action, flecks) => {
|
||||
someActionName: (store, action) => {
|
||||
// Runs when `someActionName` actions are dispatched.
|
||||
},
|
||||
}),
|
||||
|
|
|
@ -9,7 +9,7 @@ export default (flecks) => {
|
|||
};
|
||||
return (store) => (next) => (action) => {
|
||||
const result = next(action);
|
||||
setTimeout(() => effect(store, action, flecks), 0);
|
||||
setTimeout(() => effect(store, action), 0);
|
||||
return result;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user