Skip to content

Commit

Permalink
Merge pull request #42 from Hypnosphi/history-5
Browse files Browse the repository at this point in the history
Support history v5
  • Loading branch information
Treora authored Jul 15, 2020
2 parents 049b125 + 86854e9 commit 742e892
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/redux-query-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ function ReduxQuerySync({
}

function handleLocationUpdate(location) {
// Support history v5
if (location.location !== undefined) {
location = location.location;
}

// Ignore the event if the location update was induced by ourselves.
if (ignoreLocationUpdate) return

Expand Down

0 comments on commit 742e892

Please sign in to comment.