From 5fa3b0a75dab3cfe27b7205fc1794ceafa002236 Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Sun, 6 Dec 2015 12:32:32 -0600 Subject: [PATCH] Don't navigate immediately on boot. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0b33e7b..f4240a2 100644 --- a/src/index.js +++ b/src/index.js @@ -114,7 +114,7 @@ function syncReduxAndRouter(history, store, selectRouterState = SELECT_STATE) { // Only trigger history update is this is a new change or the location // has changed. - if(lastRoute !== undefined && + if(lastRoute === undefined || lastRoute.changeId === routing.changeId && locationsAreEqual(lastRoute, routing)) { return;