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

Commit

Permalink
Fixes #349
Browse files Browse the repository at this point in the history
Fixes #349 in parent

Also fixed a typo in the function comment.
  • Loading branch information
mindjuice authored and timdorr committed Apr 6, 2016
1 parent 31d5b92 commit d24f9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const initialState = {
* This reducer will update the state with the most recent location history
* has transitioned to. This may not be in sync with the router, particularly
* if you have asynchronously-loaded routes, so reading from and relying on
* this state it is discouraged.
* this state is discouraged.
*/
export function routerReducer(state = initialState, { type, payload }) {
export function routerReducer(state = initialState, { type, payload } = {}) {
if (type === LOCATION_CHANGE) {
return { ...state, locationBeforeTransitions: payload }
}
Expand Down

0 comments on commit d24f9d3

Please sign in to comment.