mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(router-utils): requests of one text share one compile; dependents rows outlive overlapping attempts
Per-key attempt state had no single owner: an overtaken attempt's discard dropped the dependents row a newer overlapping attempt shared (a later dependency edit no longer reached the importer after two quick saves), the in-flight record went before validation and publication (a same-revision request compiled again), waits on other requests counted as attempts (the fourth concurrent request of an unparsable file threw "changed repeatedly"), and a validated hit evicted the entry republished meanwhile. Now a compile of a key at one revision is one flight from its first attempt until it settled; requests of that text wait for it and emit their own output from its outcome, and only the owner's attempts count. Rows in flight live until the key's last compile ends, publication makes the published rows exactly the plan's, and a hit evicts only itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
97472b0fa9
commit
185dcd575d
4 changed files with 393 additions and 404 deletions
Loading…
Add table
Add a link
Reference in a new issue