Skip to content

Commit 7c13ff3

Browse files
committed
Merge branch 'gabrielecirulli-patch-1'
2 parents 156cb5c + cab5f03 commit 7c13ff3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ const initialState = Immutable.fromJS({
5353

5454
export default (state = initialState, action) => {
5555
if (action.type === LOCATION_CHANGE) {
56-
return state.merge({
57-
locationBeforeTransitions: action.payload
58-
});
56+
return state.set('locationBeforeTransitions', action.payload);
5957
}
6058

6159
return state;
@@ -74,7 +72,7 @@ import {
7472

7573
const history = syncHistoryWithStore(browserHistory, store, {
7674
selectLocationState (state) {
77-
return state.get('routing').toJS();
75+
return state.get('routing').toObject();
7876
}
7977
});
8078
```

0 commit comments

Comments
 (0)