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

test: the order-rule recheck's fixes (rulings A-E, messages, guide examples)

Rows that fail before the fix: an export with effects the file also writes
is extracted with its statement (B); what only an extracted export and split
code use goes to the export's module (A); an unused chain follows what it
reads transitively (D); a load-time reader whose every later writer is in its
chunk moves there (C), with a control where the writer stays; a top-level
write to state only an RSC provider's handler reads lives in the provider
module only (E). Messages: unused code is reported only when deleting it
separates the bindings, several such declarations in one report; an export's
warning names the statement that uses the kept binding (x02); a statement
writing two bindings at load reports the one it keeps (m03, m16, m17); a
statement's own callback names the binding and its load-time reader (m04);
V's fix moves only load-time code. Break D named in a row; chunks import
from a shared module only what they use.

Restated for C: four router-plugin order rows (fx and the statements calling
it move to the component chunk together and run there in order).

The guide's top-level code examples and warnings, in a real build
(code-splitter-guide.test.ts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-11-12 13:32:55 +01:00
commit 6ee41f87bd
No known key found for this signature in database
5 changed files with 749 additions and 136 deletions