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

Commit

Permalink
Merge pull request #183 from rackt/missing-state
Browse files Browse the repository at this point in the history
Include any previous state in routeReducer
  • Loading branch information
timdorr committed Jan 12, 2016
2 parents 34cc524 + 0529dea commit c02d693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function routeReducer(state = initialState, { type, location }) {
return state
}

return { location }
return { ...state, location }
}

// Syncing
Expand Down

0 comments on commit c02d693

Please sign in to comment.