Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
fix: for support combine reducers
Browse files Browse the repository at this point in the history
  • Loading branch information
tkow committed Oct 31, 2018
1 parent 618e94c commit 47bec58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export function watchRootReducer<
_intenal.errorStateId = errorStateId;
}
return (state, action) => {
if(errorStateId in state) {
delete state[errorStateId]
}
const nextState = reducer(state, action);
const nextErrors = _intenal.results.slice();
_intenal.results = [];
Expand Down

0 comments on commit 47bec58

Please # to comment.