tanstack-router

Implement TanStack Router file-based routing, loaders, and type-safe navigation in React apps.

2|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/olegakbarov/ispo-code --skill tanstack-router-olegakbarov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-router
Source: https://github.com/olegakbarov/ispo-code/tree/main/.claude/skills/tanstack-router
Command: npx skills add https://github.com/olegakbarov/ispo-code --skill tanstack-router-olegakbarov

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Expert guidance for TanStack Router file-based routing, loaders, actions, type-safe navigation, and React patterns. Use when user says "tanstack router", "/tanstack-router", "create route", "add page", "routing help", "loader", "route params", or asks about navigation, layouts, or route structure.

Core Features & Use Cases

  • File-based routing fundamentals with page and layout conventions, including dynamic segments and route params.
  • Loaders, actions, and type-safe navigation patterns to manage data flow and user interactions.
  • Real-world scenarios such as admin dashboards, content sites, and documentation portals that require scalable routing architectures.

Quick Start

Create a basic route file using TanStack Router patterns and render it through your router instance.

Frequently Asked Questions about tanstack-router

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement file-based routing with dynamic parameters in a React app?

File-based routing in a React app uses file and layout conventions to generate route structures automatically, handling dynamic segments and route params for scalable navigation. This approach modularizes route creation without manual route definitions.

What is the best way to manage data loading and user interactions during React navigation?

Using loaders and actions manages data loading and interactions during React navigation by fetching data before route rendering and executing mutations. This pattern ensures type-safe data flow across components.

How do I structure nested layouts for a scalable admin dashboard or content site?

Structuring nested layouts for admin dashboards or content sites involves organizing route files hierarchically using parent and child route conventions. This establishes scalable architectures where layout components wrap nested UI sections seamlessly.

Does TanStack Router support type-safe navigation patterns?

TanStack Router supports type-safe navigation by validating route paths, dynamic parameters, and search params at compile time. This prevents runtime errors and ensures links reference valid route definitions accurately.

How do I handle errors and follow best practices for route naming in my routing setup?

Handling errors and following best practices for route naming involves implementing dedicated error boundary components and adhering to consistent file naming conventions. This ensures predictable route resolution and robust error handling.