Skip to content

Commit

Permalink
s/atom/state and s/Composition/composition
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdustan committed Jul 1, 2015
1 parent 34d90b9 commit 8c8e429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/composeReducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import pick from '../utils/pick';
export default function composeReducers(reducers) {
const finalReducers = pick(reducers, (val) => typeof val === 'function');

return function Composition(atom = {}, action) {
return function composition(state = {}, action) {
return mapValues(finalReducers, (store, key) =>
store(atom[key], action)
store(state[key], action)
);
};
}

0 comments on commit 8c8e429

Please sign in to comment.