-
Notifications
You must be signed in to change notification settings - Fork 49.8k
Description
When streaming from the server, I've encountered a bug where client-side hydration with hydrateRoot() will seemingly "pause" and never complete, leaving html tags with hidden and id attributes hanging around. Any user events cause this error to show, likely because the app still thinks it's in the middle of hydrating. Interestingly enough, if you switch the promise timeouts in routeConfig so that post resolves earlier than posts, then you will not have this issue. So to summarize for this example: if only one boundary suspends, all is well, but if two boundaries suspend, we see this bug.
Hoping this is something stupid on my part, but stuck nonetheless.
React version: 18.2.0
Steps To Reproduce
- Load the example at https://stackblitz.com/github/tanstack/router/tree/beta/examples/react/basic-ssr?file=src%2FApp.tsx
- Paste
/posts/1into the preview URL to trigger a server-side load of that full URL - Inspect the dom
Link to code example:
https://stackblitz.com/github/tanstack/router/tree/beta/examples/react/basic-ssr?file=src%2FApp.tsx
The current behavior
The markup is not visible (some of it is hidden)
The expected behavior
All of the markup should be visible