Tanstack Router Guide

Type-safe, file-based router for React with first-class search params, data loading, and code splitting. Use when user asks to "create routes with TanStack Router", "set up file-based routing", "add search params", "use loaders", "protect routes with auth", "add code splitting", or asks about @tanstack/react-router, createFileRoute, createRouter, routeTree.gen.ts, useSearch, useParams, useNavigate, useBlocker, useMatch, useRouterState, beforeLoad, or route configuration. Do NOT use for TanStack Start server functions, Next.js App Router, React Router (without migration context), or Remix routing. Covers routing setup, navigation, search/path params, data loading, authentication, code splitting, SSR, error handling, testing, deployment, and bundler configuration (Vite, Webpack, Rspack, esbuild).

vcode-sh 58856d8 24 files · 220.0 KB Updated

File contents

vcode-sh/vibe-tools/tree/main/skills/tanstack-router-guide/skills/tanstack-router-guide commit 58856d844f

Frequently asked questions

npx skillmds@latest add vcode-sh/tanstack-router-guide