Tanstack Router Best Practices

Best-practice guidance for designing, reviewing, debugging, and modernizing TanStack Router routing in React apps, especially file-based route trees, `Link` and `useNavigate`, `validateSearch`, `beforeLoad`, loaders, `notFoundComponent`, auth guards, code splitting, and TanStack Query integration. Use this whenever the user is working with `@tanstack/react-router`, TanStack Start routing, route organization, URL state, or navigation behavior and needs current v1 guidance instead of stale class-based or React Router patterns.

mkgp-dev Updated

File contents

mkgp-dev/codex-skills commit e22cd553a2

Frequently asked questions

npx get-skill add mkgp-dev/tanstack-router-best-practices