Replace history.listen in React Router V6 #11931
Unanswered
lsbyerley
asked this question in
v5 to v6 Migration
Replies: 1 comment 1 reply
-
@lsbyerley did u find any solution for this ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We leverage the
history.listen
andhistory.action
methods/variables on the v5 history object. It doesn't appear anything similar exists in the v6 version foruseNavigate
.Are there any tips/recommendations on how to handle this?
We have a useEffect similar to this:
Beta Was this translation helpful? Give feedback.
All reactions