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)
  • Handwritten query-key tuples in shared query modules (query-key-factory is optional)
  • QueryClientProvider configured at app root

Principles

Installs
221
GitHub Stars
1
First Seen
Aug 30, 2026