Skip to content

Commit

Permalink
fix: Make sure getInitialState return an object with search (#374)
Browse files Browse the repository at this point in the history
* Make sure getInitialState return an object with search

* fix missing comma
  • Loading branch information
abhishiv authored and ScriptedAlchemy committed Oct 4, 2019
1 parent 68b1d39 commit be814fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reducer/createLocationReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const getInitialState = (
routesMap: RoutesMap,
history: History
): LocationState => ({
search: currentPathname.split('?')[1],
pathname: currentPathname.split('?')[0],
type,
payload,
Expand Down

0 comments on commit be814fb

Please sign in to comment.