We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf14d67 commit ae7d5e1Copy full SHA for ae7d5e1
modules/store/src/utils.ts
@@ -26,7 +26,8 @@ export function combineReducers(
26
27
const finalReducerKeys = Object.keys(finalReducers);
28
29
- return function combination(state = initialState, action) {
+ return function combination(state, action) {
30
+ state = state || initialState;
31
let hasChanged = false;
32
const nextState: any = {};
33
for (let i = 0; i < finalReducerKeys.length; i++) {
0 commit comments