Skip to content

Conversation

@birkskyum
Copy link
Member

@birkskyum birkskyum commented Jan 6, 2026

This hydrates document instead of document.body

Also move HeadContent to <head>

Depends on

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 6, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added documentation Everything documentation related package: solid-router labels Jan 6, 2026
@nx-cloud
Copy link

nx-cloud bot commented Jan 6, 2026

View your CI Pipeline Execution ↗ for commit 629c4d5


☁️ Nx Cloud last updated this comment at 2026-01-06 13:35:23 UTC

@birkskyum birkskyum changed the title PoC(solid-router): move HeadContent to <head> PoC(solid-router): full-document hydration Jan 6, 2026
@brenelz
Copy link
Contributor

brenelz commented Jan 6, 2026

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)
Copy link
Contributor

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 />
Copy link
Contributor

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 (
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Everything documentation related package: solid-router

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants