What problem does it solve? Setting up TanStack Router in a React application involves many moving parts—Vite plugin configuration, route registration, type-safe hooks, and SSR hydration—and common mistakes like calling React hooks inside loaders or misplacing auth providers cause subtle bugs. ## Core Features & Use Cases - Complete Setup Guide: Walks through file-based routing with Vite, including the router plugin, root route creation, and the required Register interface for type safety. - Hooks and Components Reference: Documents useNavigate, useSearch, useParams, useLoaderData, useMatches, Link, Outlet, Navigate, Await, and CatchBoundary with working examples. - Mistake Prevention: Covers high-impact errors such as using React hooks in beforeLoad/loader, recreating the router on auth changes, and missing Suspense boundaries for deferred data. - Use Case: When building a React SPA with TanStack Router, use this Skill to correctly wire an auth provider around RouterProvider and implement type-safe navigation with createLink and forwardRef. ## Quick Start Set up TanStack Router in my React Vite app with file-based routing, a root layout with navigation links, and full type safety.