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

Commit 9941838

Browse files
committed
Merge pull request #81 from STRML/master
Don't navigate immediately on boot.
2 parents f5ef679 + 5fa3b0a commit 9941838

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)