TanStack Router
17 July 2026 (Updated 17 July 2026)
Benefits
- Search params are first-class citizens.
- You can manage them in a type-safe way.
- You can validate them.
- Easily accessible in loads, components and hooks.
- Easily modifiable via the
useSearchhook, the<Link>component,navigate()orroute.navigate()APIs. - You can subscribe to changes for more efficient re-rendering.
- Built-in caching and easy data loading
- Based on TanStack Query, you get sane but powerful defaults that make it easy to cache data for reuse and to invalidate cached data when necessary.
- Easy but powerful APIs for fetching data from external sources and tracking the state of the fetches.
- Inheritable route context
- You can define route contexts that are specific to a route which is then inherited by all child routes. You can build these contexts synchronously or asynchronously to share data, configuration or even functions between routes. This can be useful for things like:
- Authentication and authorization
- Data fetching and preloading
- Theming
- Singletons and global utilities
- You can define route contexts that are specific to a route which is then inherited by all child routes. You can build these contexts synchronously or asynchronously to share data, configuration or even functions between routes. This can be useful for things like:
Links
Tagged:
TanStack Router