TanStack Query Master

•
177
•

Implements production-ready TanStack Query v5 patterns for robust asynchronous state management in React applications.

This skill equips Claude with deep expertise in TanStack Query (formerly React Query) v5, focusing on modern async state management. It facilitates the implementation of hierarchical query key factories, type-safe data fetching via the queryOptions API, and efficient data transformation using memoized select functions. By following these patterns, developers can ensure their applications handle caching, background synchronization, and optimistic updates with minimal boilerplate and maximum type safety, while adhering to the latest version 5 breaking changes and performance optimizations.

主要功能

01Type-safe data fetching using the modern queryOptions API
02Hierarchical Query Key Factory patterns for precise cache invalidation
03Advanced mutation patterns including optimistic UI updates
04Standardized TanStack Query v5 implementation with single-object signatures
05Multi-layer error handling via global QueryCache and Error Boundaries
06177 GitHub stars

使用场景

01Architecting feature-based server state logic in complex enterprise applications
02Implementing high-performance data fetching with React Suspense integration
03Migrating React applications from TanStack Query v4 to v5 using best practices