Loading...
Loading...
TanStack Router best practices for type-safe routing, data loading, search params, and navigation. Activate when building React applications with complex routing needs.
npx skill4agent add deckardger/tanstack-agent-skills tanstack-router-best-practices| Priority | Category | Rules | Impact |
|---|---|---|---|
| CRITICAL | Type Safety | 4 rules | Prevents runtime errors and enables refactoring |
| CRITICAL | Route Organization | 5 rules | Ensures maintainable route structure |
| HIGH | Router Config | 1 rule | Global router defaults |
| HIGH | Data Loading | 6 rules | Optimizes data fetching and caching |
| HIGH | Search Params | 5 rules | Enables type-safe URL state |
| HIGH | Error Handling | 1 rule | Handles 404 and errors gracefully |
| MEDIUM | Navigation | 5 rules | Improves UX and accessibility |
| MEDIUM | Code Splitting | 3 rules | Reduces bundle size |
| MEDIUM | Preloading | 3 rules | Improves perceived performance |
| LOW | Route Context | 3 rules | Enables dependency injection |
ts-ts-register-routerts-use-from-paramfromts-route-context-typingts-query-options-loaderrouter-router-default-optionsorg-org-file-based-routingorg-route-tree-structureorg-pathless-layoutsorg-index-routesorg-virtual-routesload-load-use-loadersload-loader-depsload-ensure-query-dataload-deferred-dataload-error-handlingload-parallelsearch-search-validationsearch-type-inheritancesearch-middlewaresearch-defaultssearch-custom-serializererr-err-not-foundnav-nav-link-componentnav-active-statesnav-use-navigatenav-relative-pathsnav-route-maskssplit-split-lazy-routessplit-critical-pathsplit-auto-splittingpreload-preload-intentpreload-stale-timepreload-manualctx-ctx-root-contextctx-before-loadctx-dependency-injectionrules/rules/