mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
🤖 A client-first, server-capable, fully type-safe router and full-stack framework for the web (React and more).
https://tanstack.com/router
framework
fullstack
javascript
react
route
router
routing
rpc
search
searchparams
server-functions
ssr
state-management
typesafe
typescript
url
- TypeScript 98.2%
- JavaScript 1.2%
- CSS 0.4%
- Vue 0.1%
- HTML 0.1%
Audit B (audit-final/B.md), B-H4/B-H5 and the coordinator decisions.
Deleted (checked):
- code-splitter-idempotence.test.ts (:98, :111, router plugin registered
twice): Wave B ruling, compiling Start/router output again is
unsupported (coordinator decision). The harness `instances` option it
alone used is removed.
- dead-code:173 (ReferenceError of a let read before its declaration):
tsc TS2448/TS2454 reproduced; dead-code:120 covers initializers running.
- route-options:67 (repeated split key): tsc TS1117 reproduced.
- route-options:125 (var Route in a block), scope:448 (a < b > (c)),
scope:492 (printer edge cases), robustness:9 (hashbang route file):
valid syntax but fuzzer-shaped, no route file is written so. scope:448
is replaced by "splits a route file with JSX" for .js/.jsx/.mjs.
Fixed:
- dead-code:267: no longer requires the route module to keep importing
`bar` (Babel DCE rule); still requires `used` to leave it.
- imports-exports:172: D9 comment (assert support can be dropped).
- imports-exports:234/:252: a real importer gets the re-exported import /
destructured export (P1); getStuff is a declared import. Run-once of the
destructuring is the existing kb pin ("a destructuring with one exported
binding"), which this test found red again, so it is not repeated here.
- imports-exports:317: getParentRoute returns an imported root route.
- imports-exports:944: legacy decorators from tsyringe/mobx field
decorators; every emitted module must parse with Babel
decorators-legacy (instead of a regex on the printed code).
- module-state:78: both chunks see one A and one B; :358: realistic
self-replacing lazy getter, created once, one identity (the old input
assigned to a function declaration, TS2630); :994: no initialiser timing
(atLoad dropped); the route module imports ./init only if it creates the
store; :1023: loading the notFoundComponent chunk creates nothing (D5),
whatever the route module does.
- plugin-pipeline:156: the error names splitBehavior and the route id.
- plugin-pipeline:185/:199 (B-H4): real @vitejs/plugin-react 6 instances
before the router plugin are refused naming the package, after it are
accepted; the unreachable "router plugin not in config" half is gone.
swc/oxc rows stay name-only (packages not installed).
- plugin-pipeline:264: Vue's Route.useLoaderData returns a Ref (checked in
vue-router/src/useLoaderData.tsx), so the Vue row reads `.value`.
- plugin-pipeline:311: non-route modules: one module, same imports, valid,
same evaluated exports, instead of identical text.
- plugin-pipeline:388: no stray trailing 'use server'; :428: only the loc.
- route-options:79/:101: pendingComponent: null is a type error (TS2322
reproduced) -> undefined; errorComponent: null (accepted by the types)
added. :508: methods only (no getter/setter). :954: registerRoute(Route)
from a module of the app. :985: 'use no memo' on a component.
- scope:231: valid intrinsic attributes; <A /> reaches a component prop,
so the test sees it rendered.
- build-harness.test:107 (esbuild, D3 (c)): split and rendered, or a
build error / warning naming esbuild and autoCodeSplitting. Run without
.fails: red for placement (component eager).
- build-source-maps:214: the rspack/webpack rows fail with line 3 instead
of 5 (unplugin drops the map); with a loader passing an identity map in
front of unplugin's (what an upstream fix gives), all four pass. Kept as
pins, comment updated.
- B-H5/A-H6: router-plugin tests/build-harness.ts header no longer claims
apps inherit "sideEffects": false.
Kept: build-production:233 is the one "default build prints no debug
output" test. pragmas:50 untouched (D-04).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
History
|
|
|---|---|---|
| .agents/skills | ||
| .changeset | ||
| .devcontainer | ||
| .github | ||
| .nx/workflows | ||
| _artifacts | ||
| benchmarks | ||
| docs | ||
| e2e | ||
| examples | ||
| gpt | ||
| media | ||
| packages | ||
| scripts | ||
| skills/bundle-size-optimization | ||
| .coderabbit.yaml | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierignore | ||
| AGENTS.md | ||
| CONTRIBUTING.md | ||
| DEBUGGING.md | ||
| eslint.config.js | ||
| how-to-guides-implementation-plan.md | ||
| how-to-testing-plan.md | ||
| knip.json | ||
| labeler-config.yml | ||
| LICENSE | ||
| nx.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| prettier.config.js | ||
| README.md | ||
| top-10-how-to-guides.md | ||
| tsconfig.json | ||
TanStack RouterA modern router designed for type safety, data‑driven navigation, and seamless developer experience.
Read the Router Docs → |
TanStack StartA full‑stack framework built on Router, designed for server rendering, streaming, and production‑ready deployments.
Read the Start Docs → |
Get Involved
- We welcome issues and pull requests!
- Participate in GitHub discussions
- Chat with the community on Discord
- See CONTRIBUTING.md for setup instructions
Partners
|
|
|
|
|
|
|
|
|
|
|
|
We're looking for TanStack Router & Start Partners to join our mission! Partner with us to push the boundaries of TanStack Router & Start and build amazing things together.
LET'S CHATExplore the TanStack Ecosystem
- TanStack Config – Tooling for JS/TS packages
- TanStack DB – Reactive sync client store
- TanStack DevTools – Unified devtools panel
- TanStack Form – Type‑safe form state
- TanStack Pacer – Debouncing, throttling, batching
- TanStack Query – Async state & caching
- TanStack Ranger – Range & slider primitives
- TanStack Store – Reactive data store
- TanStack Table – Headless datagrids
- TanStack Virtual – Virtualized rendering
… and more at TanStack.com »