Skip to content

Commit

Permalink
Merge pull request #201 from iamdustan/breaking-changes-s-atom-store
Browse files Browse the repository at this point in the history
Breaking changes: s/atom/store
  • Loading branch information
gaearon committed Jul 1, 2015
2 parents 34d90b9 + 8c8e429 commit 72aa974
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 72aa974

Please sign in to comment.