Skip to content

Commit 8c8e429

Browse files
committed
s/atom/state and s/Composition/composition
1 parent 34d90b9 commit 8c8e429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/composeReducers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import pick from '../utils/pick';
44
export default function composeReducers(reducers) {
55
const finalReducers = pick(reducers, (val) => typeof val === 'function');
66

7-
return function Composition(atom = {}, action) {
7+
return function composition(state = {}, action) {
88
return mapValues(finalReducers, (store, key) =>
9-
store(atom[key], action)
9+
store(state[key], action)
1010
);
1111
};
1212
}

0 commit comments

Comments
 (0)