-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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 hash with lazy component results in an empty page on initial load #10469
Comments
Thanks for the reproduction! This looks like a side effect of #10408 since it's not treating initial page loads with a hash as a "same hash" navigation - we'll get this fixed up in a patch release soon! |
This is fixed by #10493 and will be available once 6.11.2 is released 👍 |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of React Router are you using?
6.11.1
Steps to Reproduce
Add any hash value to route that uses lazy component and refresh the page.
Example codesandbox
Expected Behavior
Using hash shouldn't cause route matching problem.
Actual Behavior
It results in an empty page with console warning:
Matched leaf route at location "/path#hash" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.
The text was updated successfully, but these errors were encountered: