From 803169ce2805999a5675763db81cb0cee78d989e Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Sun, 6 Dec 2015 20:08:43 -0600 Subject: [PATCH] use history.push instead of history.pushState ref https://github.com/rackt/history/pull/168 --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index fc43a1d..f57046a 100644 --- a/src/index.js +++ b/src/index.js @@ -115,7 +115,7 @@ function syncReduxAndRouter(history, store, selectRouterState = SELECT_STATE) { }; // Also set `lastRoute` so that the store subscriber doesn't - // trigger an unnecessary `pushState` on load + // trigger an unnecessary `history.push` on load lastRoute = initialState; store.dispatch(initPath(route.path, route.state)); @@ -136,7 +136,7 @@ function syncReduxAndRouter(history, store, selectRouterState = SELECT_STATE) { !locationsAreEqual(lastRoute, routing)) { lastRoute = routing; - const method = routing.replace ? 'replaceState' : 'pushState'; + const method = routing.replace ? 'replaceState' : 'push'; history[method](routing.state, routing.path); }