0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

fix(start-plugin-core): keep <ClientOnly> children where server components render (C1)

Step 5 erased <ClientOnly> children in every server env, the RSC env included.
A Flight render serialises ClientOnly's props for the browser, so the children
were gone there too: the browser never rendered them (JSX in a handler, a
composite component's slot). Erase only where HTML is rendered; SPEC J4.11.

e2e: rsc-client-only (Vite build, Rsbuild build, Rsbuild dev).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-11-16 16:20:11 +01:00
commit df2bab3dd4
No known key found for this signature in database
8 changed files with 215 additions and 7 deletions