tanstack-query-patterns

Community

Pattern-based data fetching with TanStack Query.

Authorqazuor
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexity of managing server state across React components by providing reusable TanStack Query patterns for data fetching, caching, and synchronization.

Core Features & Use Cases

  • Reusable patterns: Factory options like usersQueryOptions, userQueryOptions, and userPostsQueryOptions to standardize data access.
  • Cache & synchronization: Robust caching, invalidation, prefetching, and optimistic updates to keep UI in sync with server state.
  • Use Case: Build efficient dashboards and lists by composing queries with hierarchical keys and parallel or dependent queries.

Quick Start

Install the TanStack Query library in your project: npm install @tanstack/react-query. Create a QueryClient and wrap your app with QueryClientProvider. Import and adopt the provided patterns, e.g., usersQueryOptions and userQueryOptions, to fetch data with built-in caching and invalidation.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tanstack-query-patterns
Download link: https://github.com/qazuor/claude-code-knowledge/archive/main.zip#tanstack-query-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.