charhub-react-query-patterns

Community

TanStack React Query patterns for reliable data

Authorleandro-br-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manages and standardizes the approach to data fetching, caching, and server state within CharHub's frontend using TanStack Query to reduce boilerplate and inconsistencies.

Core Features & Use Cases

  • Establishes a consistent QueryClient setup, including default query options and provider integration.
  • Demonstrates practical use of useQuery, useMutation, and query keys, with patterns for pagination, prefetching, and cache invalidation.
  • Applies across components to ensure reliable data flows, optimistic updates, and resilient error handling in typical UI scenarios.

Quick Start

Initialize TanStack Query in your app by creating a QueryClient with sensible defaults and wrapping your app in a QueryProvider.

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: charhub-react-query-patterns
Download link: https://github.com/leandro-br-dev/charhub/archive/main.zip#charhub-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.