Skip to content

Commit

Permalink
dont fall back to initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
conorhastings committed Sep 1, 2019
1 parent 67ed210 commit 2298aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function mergeState(prevState, newState, mergeChanges) {
: state.sideEffects;

return {
state: newState.state || prevState.state,
state: newState.state,
sideEffects: newSideEffects
};
}
Expand Down

0 comments on commit 2298aba

Please # to comment.