-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Using the browser back button console logs a warning #9998
Comments
Thanks for the report! Pushed a fix for this in the above PR 👍 |
This is fixed in |
Confirmed! No more warnings in the console when navigating forward/backward using the browser buttons. Looking forward to the patch and thanks! |
This is now released in |
What version of React Router are you using?
6.8.0
Steps to Reproduce
Minimal test case at https://stackblitz.com/edit/react-ts-gphlmg?file=App.tsx
NB. Using only the links on the page works as expected without any warnings in the console.
Expected Behavior
There should (probably?) be no warnings in the console in this simple use case. Nothing is actively blocked and no navigation outside of the router happens (unless using the browser's back/forward button is considered navigation outside of the router).
Actual Behavior
The following warning is logged in the console:
The text was updated successfully, but these errors were encountered: