diff --git a/src/index.js b/src/index.js index 538a19d..0f4278c 100644 --- a/src/index.js +++ b/src/index.js @@ -115,8 +115,7 @@ function syncReduxAndRouter(history, store, selectRouterState = SELECT_STATE) { // trigger an unnecessary `pushState` on load lastRoute = initialState - const method = location.action === 'REPLACE' ? replacePath : pushPath; - store.dispatch(method(route.path, route.state, { avoidRouterUpdate: true })); + store.dispatch(pushPath(route.path, route.state, { avoidRouterUpdate: true })); } else if(!locationsAreEqual(getRouterState(), route)) { // The above check avoids dispatching an action if the store is // already up-to-date