Replace history.listen in React Router V6 #11931
Unanswered
lsbyerley
asked this question in
v5 to v6 Migration
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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