Skip to content

Commit

Permalink
Merge pull request #60 from nicknikolov/master
Browse files Browse the repository at this point in the history
Pass the new state into the reducer done callback
  • Loading branch information
yoshuawuyts committed Aug 27, 2016
2 parents 13d68e4 + 6c23319 commit 50eadad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50eadad

Please sign in to comment.