We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34d90b9 + 8c8e429 commit 72aa974Copy full SHA for 72aa974
src/utils/composeReducers.js
@@ -4,9 +4,9 @@ import pick from '../utils/pick';
4
export default function composeReducers(reducers) {
5
const finalReducers = pick(reducers, (val) => typeof val === 'function');
6
7
- return function Composition(atom = {}, action) {
+ return function composition(state = {}, action) {
8
return mapValues(finalReducers, (store, key) =>
9
- store(atom[key], action)
+ store(state[key], action)
10
);
11
};
12
}
0 commit comments