The TanStack Query v5 skill equips Claude Code with authoritative patterns and architectural guidelines for managing server state in modern React applications. It provides battle-tested guidance on setup, configuring query client defaults, implementing mutations with optimistic updates, orchestrating cache invalidation, and avoiding deprecated v4 APIs. Whether refactoring request waterfalls, setting up queryOptions factories, or debugging stale cache behavior, this skill ensures robust and declarative data synchronization.
主な機能
01Handles mutations with automatic query invalidation and optimistic UI updates
02Implements data fetching with useQuery, useSuspenseQuery, and useInfiniteQuery
03Enforces strict object syntax and eliminates removed query lifecycle callbacks
04Provides automated guidance for migrating from React Query v4 to v5
05239 GitHub stars
06Configures QueryClient with optimized staleTime, gcTime, and retry policies
ユースケース
01Architecting scalable API caching, prefetching, and pagination layers in React
02Building resilient offline-first mutations with rollback and optimistic updates
03Migrating legacy React Query v4 codebases to TanStack Query v5 object syntax