TanStack Router Documentation
TanStack Router documentation. Use for type-safe React routing, file-based routing, search params, loaders, data fetching, and navigation.
Quick Reference
| Task | Entry Point |
|------|-------------|
| Getting started | contents/router/quick-start.md |
| Overview | contents/router/overview.md |
| File-based routing | contents/router/routing/file-based-routing.md |
| API reference | contents/router/api/router/ |
| Search params | contents/router/guide/search-params.md |
| Data loading | contents/router/guide/data-loading.md |
| TanStack Start (React) | contents/start/framework/react/quick-start.md |
| TanStack Start (Solid) | contents/start/framework/solid/quick-start.md |
| Installation | contents/router/how-to/install.md |
| FAQ | contents/router/faq.md |
When to use
Use this skill when the user asks about:
- TanStack Router setup, installation, and configuration
- File-based routing, code-based routing, route trees, and route matching
- Search parameters, path params, and URL handling
- Data loading, loaders, deferred data, and external data fetching
- Navigation, links, redirects, and route masking
- Authentication, protected routes, and role-based access
- SSR, code splitting, and preloading
- TanStack Start full-stack framework (React or Solid)
- Server functions, server routes, middleware
- Type safety with TypeScript and router context
How to find information
- First, read
TOC.mdfor complete file listing organized by directory - Identify relevant section based on user's question
- Read specific files for details
TOC.md contains all files organized by directory - always check it first.