forked from reduxjs/redux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor combineReduer's Unexpected State Shape Warning
The shape of the previous state is irrelevant, what we’re actually testing is that state has the same shape as our reducer object `finalReducers`. Also fixes the algorithm to be O(n) by using `#hasOwnProperty` vs doing an array search.
- Loading branch information
1 parent
683dc38
commit e5aabde
Showing
1 changed file
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters