diff --git a/src/create-stores.js b/src/create-stores.js index d67f76a..f2e1b1f 100644 --- a/src/create-stores.js +++ b/src/create-stores.js @@ -86,9 +86,10 @@ const createHooks = stores => const createDispatch = stores => { let dispatch; - const delayedDispatch = (...params) => { + // to avoid recursive loops when perform uses dispatch + const delayedDispatch = action => { setTimeout(() => { - dispatch(params); + dispatch(action); }, 20); };