Loading...
Loading...
Current TanStack Query v5 guidance for queries, mutations, caching, prefetching, Suspense, and render optimization. Use with useQuery, useMutation, queryClient, queryOptions, skipToken, mutation scopes, or cache invalidation. API mocking is covered by the msw skill.
npx skill4agent add pymodel/react-frontend-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}.mdmswreactAGENTS.md