Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit 0529dea

Browse files
committed
Include any previous state in routeReducer.
1 parent 6a4fae6 commit 0529dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function routeReducer(state = initialState, { type, location }) {
3838
return state
3939
}
4040

41-
return { location }
41+
return { ...state, location }
4242
}
4343

4444
// Syncing

0 commit comments

Comments
 (0)