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
It's can be reproduced in the "basic-ssr-file-based" example. If you go from "home" to "post" in browser, the context is defined. If you reload the page while standing on "post" page, it's undefined.
Expected behavior
useRouteContext being defined both during SSR load and Client side routing.
Screenshots or Videos
No response
Platform
Linux
Additional context
No response
The text was updated successfully, but these errors were encountered:
I've tested this using the "basic-ssr-file-based" in the sandbox below (with all the packages upgraded to latest). In the sandbox below, I was not able recreate the issue you described.
@SeanCassiere was able to reproduce it in the sandbox you linked. Navigating to /posts and refreshing the page causes a hydration error and: PostsIndexComponent.context undefined
Describe the bug
When loading the page, 'useRouteContext' is undefined.
When client side navigating to the page, it's defined.
Your Example Website or App
https://tanstack.com/router/latest/docs/framework/react/examples/basic-ssr-file-based
Steps to Reproduce the Bug or Issue
It's can be reproduced in the "basic-ssr-file-based" example. If you go from "home" to "post" in browser, the context is defined. If you reload the page while standing on "post" page, it's undefined.
Expected behavior
useRouteContext being defined both during SSR load and Client side routing.
Screenshots or Videos
No response
Platform
Linux
Additional context
No response
The text was updated successfully, but these errors were encountered: