From 6526f931e6d297170671228b17e98b9409c1b2df Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 16 Mar 2022 00:43:04 -0500 Subject: [PATCH] refactor: effect signature --- packages/redux/build/dox/hooks.js | 2 +- packages/redux/src/store/middleware/effects.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/redux/build/dox/hooks.js b/packages/redux/build/dox/hooks.js index 7fe2f32..0939102 100644 --- a/packages/redux/build/dox/hooks.js +++ b/packages/redux/build/dox/hooks.js @@ -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. }, }), diff --git a/packages/redux/src/store/middleware/effects.js b/packages/redux/src/store/middleware/effects.js index 42898ac..91f2dbd 100644 --- a/packages/redux/src/store/middleware/effects.js +++ b/packages/redux/src/store/middleware/effects.js @@ -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; }; };