mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(react-start-rsc): a server fn nested in a function only the split component calls
The `start-env` planner addresses its nested-chain override to the env module only: a chain inside a function that moves into a split chunk renders the placeholder there, and the chunk imports the hoisted binding from the provider module. The row shows why no environment observes it: a derived provider exists only in the Vite `rsc` environment, whose build input is the rsc entry alone, so route modules enter its graph as provider outputs (copies) and never as their env module or split chunks. The page works (the handler runs in the provider when the browser calls it, its body is in no client file) and the rsc build holds none of the route's component code. The override's comment says so; the Rsbuild architecture note no longer describes the deleted separate provider environment. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
6e28afea28
commit
dc3eb69feb
3 changed files with 58 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue