Skip to content
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]: #9986

Closed
nite opened this issue Jan 26, 2023 · 2 comments
Closed

[Bug]: #9986

nite opened this issue Jan 26, 2023 · 2 comments
Labels

Comments

@nite
Copy link

nite commented Jan 26, 2023

What version of React Router are you using?

6.7.0

Steps to Reproduce

Using <HashRouter>, when changing the hash route by using window.location, eg. as a user would do when changing the url manually, we get the following warning and no change in route:

"You are trying to block a POP navigation to a location that was not created by @remix-run/router. The block will fail silently in production, but in general you should do all navigation with the router (instead of using window.history.pushState directly) to avoid this situation."

Expected Behavior

As in versions prior to 6.7, a route change should occur.

Actual Behavior

We get the following warning and no change in route:

"You are trying to block a POP navigation to a location that was not created by @remix-run/router. The block will fail silently in production, but in general you should do all navigation with the router (instead of using window.history.pushState directly) to avoid this situation."
@nite nite added the bug label Jan 26, 2023
@poserdonut
Copy link

I guess this is related to #9980

@timdorr
Copy link
Member

timdorr commented Jan 26, 2023

Duplicate of #9966

@timdorr timdorr marked this as a duplicate of #9966 Jan 26, 2023
@timdorr timdorr closed this as completed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants