You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect all useLoaderData calls to return the loader data instead of null.
Actual Behavior
Root has a loader
Layout has a clientLoader + HydrateFallback
Index has a loader
The layout clientLoader ensures the URL contains a search params p by throwing a redirection.
If you load the page without the URL search params (full page load), you'll see that root and index data become null but the layout route data in defined.
The text was updated successfully, but these errors were encountered:
Reproduction
https://stackblitz.com/edit/remix-run-remix-qwsqt5?file=app%2Froot.tsx
System Info
Used Package Manager
npm
Expected Behavior
I would expect all
useLoaderData
calls to return the loader data instead ofnull
.Actual Behavior
loader
clientLoader
+HydrateFallback
loader
The layout
clientLoader
ensures the URL contains a search paramsp
by throwing a redirection.If you load the page without the URL search params (full page load), you'll see that root and index data become
null
but the layout route data in defined.The text was updated successfully, but these errors were encountered: