refactor: effect signature

This commit is contained in:
cha0s 2022-03-16 00:43:04 -05:00
parent 527ef24192
commit 6526f931e6
2 changed files with 2 additions and 2 deletions

View File

@ -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.
},
}),

View File

@ -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;
};
};