What problem does it solve?
This Skill provides a type-safe, declarative routing system that eliminates brittle string-based routes and consolidates route definitions, data loading, and search parameter management to reduce runtime errors and simplify navigation logic for React and Solid applications.
Core Features & Use Cases
- Type-safe route definitions with compile-time guarantees for path params, search params, and loader data.
- File-based routing and code splitting that auto-generates route trees and enables lazy-loaded route components.
- Built-in data loaders, loader dependencies, and search validation for predictable data fetching, pagination, and preloading.
- Use Case: Build a dashboard or blog where routes declare their loaders, guard authenticated sections with beforeLoad, validate query parameters, and preload data for fast, consistent navigation.
Quick Start
Use tanstack-router to create a root route, add file-based child routes with loaders and search validation, and wrap your application with a RouterProvider to supply context and enable navigation.