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

Commit 5fa3b0a

Browse files
committed
Don't navigate immediately on boot.
1 parent 440ca6a commit 5fa3b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function syncReduxAndRouter(history, store, selectRouterState = SELECT_STATE) {
114114

115115
// Only trigger history update is this is a new change or the location
116116
// has changed.
117-
if(lastRoute !== undefined &&
117+
if(lastRoute === undefined ||
118118
lastRoute.changeId === routing.changeId &&
119119
locationsAreEqual(lastRoute, routing)) {
120120
return;

0 commit comments

Comments
 (0)