mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(router-utils): Hydrate chunks refuse to assign their copy of kept state, and import the route binding (measure-phase2 findings 1, 2)
H4, copy analogue: a <Hydrate> chunk that would assign its copy of a
binding the env module keeps falls back (hydrate-module-write), in the
same writers check as assigning an import: the copy would be written and
the module's read (a module let the loader and the page read, assigned in
the children, built silently wrong; the base refused it, main fails the
build). The refusal now advises split={false} only.
H2 (a): the hydrate output's import set is its planner's set plus the
route binding (RouteModule.route, set by the router planner), as split
chunks import it, whatever encloses the boundary: children reading Route
from an exported component outside the route's component no longer get a
second createFileRoute(...).
Rows failing at 9cc5260b80: route-file refusals (counter, store), h4's
refusal, the chunk importing Route (fast tier), and a Vite/Rsbuild build
where the children read the one route the tree updated. KNOWN-BUGS, SPEC,
README, guide row and changeset follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9cc5260b80
commit
ef9aa56252
12 changed files with 199 additions and 62 deletions
Loading…
Add table
Add a link
Reference in a new issue