Loading...
Loading...
TanStack Query v5 performance optimization for data fetching, caching, mutations, and query patterns. This skill should be used when using useQuery, useMutation, queryClient, prefetch patterns, or TanStack Query caching. This skill does NOT cover generating query hooks from OpenAPI (use orval skill) or mocking API responses in tests (use test-msw skill).
npx skill4agent add pproenca/dot-skills tanstack-query| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Query Key Structure | CRITICAL | |
| 2 | Caching Configuration | CRITICAL | |
| 3 | Mutation Patterns | HIGH | |
| 4 | Prefetching & Waterfalls | HIGH | |
| 5 | Infinite Queries | MEDIUM | |
| 6 | Suspense Integration | MEDIUM | |
| 7 | Error & Retry Handling | MEDIUM | |
| 8 | Render Optimization | LOW-MEDIUM | |
tquery-key-factoriestquery-hierarchical-keystquery-always-arraystquery-serializable-objectstquery-options-patterntquery-colocate-keyscache-staletime-gctimecache-global-defaultscache-placeholder-vs-initialcache-invalidation-precisioncache-refetch-triggerscache-enabled-optionmutation-optimistic-updatesmutation-invalidate-onsettledmutation-cancel-queriesmutation-setquerydatamutation-avoid-parallelprefetch-avoid-waterfallsprefetch-on-hoverprefetch-in-queryfnprefetch-server-componentsprefetch-flatten-apiinfinite-max-pagesinfinite-flatten-pagesinfinite-refetch-behaviorinfinite-loading-statessuspense-use-suspense-hookssuspense-error-boundariessuspense-parallel-queriessuspense-boundaries-placementerror-retry-configerror-conditional-retryerror-global-handlererror-display-patternserror-throw-on-errorrender-select-memoizerender-select-derivedrender-notify-propsrender-structural-sharingrender-tracked-propsreferences/{prefix}-{slug}.mdorvaltest-mswreact-19AGENTS.md