-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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]: v7_partialHydration with lazy routes result in empty route #11120
Comments
Yep! That's right - this is definitely a bug as |
This is fixed in #11121 and will be available in the next release 👍 |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of React Router are you using?
6.21.0
Steps to Reproduce
RouterProvider
v7_partialHydration=true
Reproduction:
https://stackblitz.com/edit/github-bzxwek?file=src%2Fapp.tsx
Expected Behavior
As of my understanding feature flags is the default behavior in the next version so I want to set this flag to true even though this feature (partial hydration) should only apply to server rendered apps?
Anyways, when setting this flag to true it is expected not to break lazy routes.
Actual Behavior
lazy route is not rendered and warning in console: Matched leaf route at location "/" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.
The text was updated successfully, but these errors were encountered: