From 6c23319e4f4bca4cb98c2df7f9b452720b801370 Mon Sep 17 00:00:00 2001 From: Nick Nikolov Date: Thu, 25 Aug 2016 16:53:52 +0100 Subject: [PATCH] Pass the new state into the reducer done callback --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 800dd3a..6d4729b 100644 --- a/index.js +++ b/index.js @@ -187,7 +187,7 @@ function dispatcher (hooks) { applyHook(onStateChangeHooks, data, newState, _state, actionName, createSend) } _state = newState - cb() + cb(null, newState) } const _effects = ns ? effects[ns] : effects