tanstack-query-v5
Installation
SKILL.md
Skill: tanstack-query
Scope
- Applies to: TanStack Query v5+ for async operations, data fetching, caching, mutations, infinite queries, optimistic updates
- Does NOT cover: URL state management (use nuqs), grouped synchronous state (use ahooks.useSetState), localStorage persistence (use ahooks.useLocalStorageState)
Assumptions
- TanStack Query v5+
- React 18+ with hooks support
- TypeScript v5+ (for type inference)
@lukemorales/query-key-factoryfor query key management- QueryClientProvider configured at app root