react-query-patterns

Community

Master TanStack Query for efficient data handling.

Authorbradtaylorsf
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides clear, actionable patterns for leveraging TanStack Query (React Query) to efficiently manage server state, including data fetching, caching, and mutations in React applications.

Core Features & Use Cases

  • Data Fetching & Caching: Demonstrates effective use of useQuery with various options for controlling data freshness and cache behavior.
  • Mutations & Optimistic Updates: Illustrates how to handle data mutations, including implementing optimistic updates for a smoother user experience.
  • Pagination & Infinite Scrolling: Provides examples for implementing both offset-based pagination and infinite scrolling.
  • Error Handling & Suspense: Shows how to integrate with React Suspense and implement robust error handling strategies.
  • Use Case: A developer can quickly find and implement best practices for fetching user data, updating user profiles, or displaying paginated lists of products in their React application using TanStack Query.

Quick Start

Use the react-query-patterns skill to generate a basic useQuery hook for fetching user data by ID.

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: react-query-patterns
Download link: https://github.com/bradtaylorsf/alphaagent-team/archive/main.zip#react-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 223,000+ vetted skills library on demand.