-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
PoC(solid-router): full-document hydration #6318
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
base: main
Are you sure you want to change the base?
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 629c4d5 ☁️ Nx Cloud last updated this comment at |
<head>|
I'm pretty sure we already did full document hydration. Maybe the docs just weren't updated? |
| const router = createRouter() | ||
|
|
||
| hydrate(() => <RouterClient router={router} />, document.body) | ||
| hydrate(() => <RouterClient router={router} />, document) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't we have a hydrateStart function or did that change?
| return ( | ||
| <html> | ||
| <head> | ||
| <HydrationScript /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we still need the HydrationScript?
| hydrationPromise = Promise.resolve() | ||
| } | ||
| } | ||
| return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like i changed this all. Is this an oudated file?
This hydrates document instead of document.body
Also move HeadContent to
<head>Depends on