mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
1.9 KiB
1.9 KiB
Packages
- Route generation/code splitting live in
router-generator/router-plugin; Start build transforms live instart-plugin-core.
Router bindings
- Navigation/render identity is more than href or route membership: same-href navigations can have different history keys, and suspended renders must acknowledge only their own match publication. Preserve those identity checks when optimizing stores or render notifications.
- In navigation params/search, an explicit
undefinedcan clear an inherited value; an absent key can inherit it. Preserve that distinction when comparing or memoizing options; React'suseValueStableusesdeepEqualwithignoreUndefined: false.
Tests
- Inspect test commands: several
test:unitscripts immediately exit or only echo a message. For these packages, validate behavior in the shared core or consuming e2e app; a successful placeholder target provides no unit coverage. - For
*-router-ssr-querychanges, runrouter-ssr-query-coreunit tests and the affected framework'se2e/<framework>-start/query-integrationtests. The framework wrapper unit targets currently exit without running tests. - For single-command Vitest targets, append filters after
--, e.g.-- tests/link.test.tsx -t "preloading". solid-routerandrouter-generatorchain two Vitest commands intest:unit. Trailing file/name/update arguments reach only the final command. Run the full target for verification: Solid needs browser and server suites; the generator needs fixture generation followed by typechecking.- For public type changes, add
*.test-d.*inference regressions and run both unit and type targets. React/Solid Router's TypeScript compiler matrix checkssrc; Vitest runs their inference tests. For changes to inference cost, follow the type-safety performance guidance;test:perfmeasures runtime, not compiler cost.