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

feat(router-utils): a bare statement follows what it touches into its chunk

A statement that declares nothing (a call, an assignment, an if/try/loop
block) was an env root. It now follows what it touches: the module
bindings its text names and the objects their values hold
(MutationModel.heldBy, factored out of the through-writes walk: one owner
of "the object a binding names"). Touching an import, or nothing of the
module, keeps it an env root (decided in seeds, once). Otherwise it is a
follower: judged once against reach without it, rooted in the one chunk
every touched cluster and its own declarations go to (a cluster only it
reads follows it), then checked every round with the slots (each touched
cluster still has only that chunk, none stays, a timed one is there too,
plus readConflict/writeConflict); demoted, it becomes an env root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-11-11 21:34:48 +01:00
commit f5529e64a4
No known key found for this signature in database
9 changed files with 263 additions and 50 deletions