Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…mutable into gabrielecirulli-patch-1
  • Loading branch information
gajus committed Nov 2, 2016
2 parents 156cb5c + c83325f commit cab5f03
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ const initialState = Immutable.fromJS({

export default (state = initialState, action) => {
if (action.type === LOCATION_CHANGE) {
return state.merge({
locationBeforeTransitions: action.payload
});
return state.set('locationBeforeTransitions', action.payload);
}

return state;
Expand All @@ -74,7 +72,7 @@ import {

const history = syncHistoryWithStore(browserHistory, store, {
selectLocationState (state) {
return state.get('routing').toJS();
return state.get('routing').toObject();
}
});
```
Expand Down

0 comments on commit cab5f03

Please sign in to comment.