mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(start-plugin-core): keep a nested server fn's chain in the env module of a separate provider (R50)
With a derived provider module (Vite RSC `rsc` env), a nested site (`export default createServerFn()…`, an object property, a class field) was hoisted into the provider output and the env module imported the hoisted binding from `?tss-serverfn-split`, so the rsc env evaluated the provider module (and everything its handlers import) and called the handler in-process, unlike its top-level siblings. The env module now keeps the chain in place with its `createSsrRpc(id)` stub (an edit on exactly the claimed region overrides the placeholder there). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
523c880bff
commit
6116bb58bf
2 changed files with 89 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue