TanStack Router is a modern, fully type-safe routing library designed for React and Solid applications, offering robust routing capabilities with first-class support for data loading, search parameters, nested layouts, and seamless integration with client-side caching libraries like TanStack Query. nd‑to‑end type safety (routes, params, loaders). Schema‑driven search params with validation. Built‑in caching, prefetching & invalidation. Nested layouts, transitions & error boundaries.

Features

  • 100% inferred TypeScript support with type-safe path, query, and navigation APIs
  • Built-in data loaders with caching, prefetching, and support for SWR or Query libraries
  • First-class, JSON-first search parameter management with validation and middleware
  • Supports both file-based and code-based routing with nested and layout routes
  • Advanced routing behaviors: scroll restoration, deferred data loading, error boundaries, navigation blocking
  • Developer-friendly hooks/components such as useSearch, Link, useNavigate, and DevTools integration

Project Samples

Project Activity

See All Activity >