Skip to content

Commit be814fb

Browse files
abhishivScriptedAlchemy
authored andcommitted
fix: Make sure getInitialState return an object with search (#374)
* Make sure getInitialState return an object with search * fix missing comma
1 parent 68b1d39 commit be814fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reducer/createLocationReducer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const getInitialState = (
7373
routesMap: RoutesMap,
7474
history: History
7575
): LocationState => ({
76+
search: currentPathname.split('?')[1],
7677
pathname: currentPathname.split('?')[0],
7778
type,
7879
payload,

0 commit comments

Comments
 (0)