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

Commit d24f9d3

Browse files
mindjuicetimdorr
authored andcommitted
Fixes #349
Fixes #349 in parent Also fixed a typo in the function comment.
1 parent 31d5b92 commit d24f9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/reducer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const initialState = {
1212
* This reducer will update the state with the most recent location history
1313
* has transitioned to. This may not be in sync with the router, particularly
1414
* if you have asynchronously-loaded routes, so reading from and relying on
15-
* this state it is discouraged.
15+
* this state is discouraged.
1616
*/
17-
export function routerReducer(state = initialState, { type, payload }) {
17+
export function routerReducer(state = initialState, { type, payload } = {}) {
1818
if (type === LOCATION_CHANGE) {
1919
return { ...state, locationBeforeTransitions: payload }
2020
}

0 commit comments

Comments
 (0)