Skip to content

Commit

Permalink
Merge branch 'master' into feature/update-to-v5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarfany committed Apr 29, 2019
2 parents a2f5b77 + 9a39ade commit 46bc888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConnectedRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const createConnectedRouter = (structure) => {
} = props.history.location

// If we do time travelling, the location in store is changed but location in history is not changed
if (pathnameInHistory !== pathnameInStore || searchInHistory !== searchInStore || hashInHistory !== hashInStore) {
if (props.history.action === 'PUSH' && (pathnameInHistory !== pathnameInStore || searchInHistory !== searchInStore || hashInHistory !== hashInStore)) {
this.inTimeTravelling = true
// Update history's location to match store's location
props.history.push({
Expand Down

0 comments on commit 46bc888

Please sign in to comment.