What problem does it solve?
This Skill helps developers efficiently manage server state in React applications, simplifying data fetching, caching, and synchronization, and resolving complex migration issues from v4 to v5.
Core Features & Use Cases
- Data Fetching & Caching: Streamlines fetching, caching, and updating server data in React.
- Migration Assistance: Provides guidance and fixes for migrating from TanStack Query v4 to v5, addressing breaking changes like object syntax, renamed options, and status flag changes.
- Advanced Patterns: Covers optimistic updates, infinite queries, error handling with
throwOnError, and offline support.
- Use Case: A developer is upgrading a React app to TanStack Query v5 and encountering numerous errors related to syntax changes and removed features. They use this Skill to understand the breaking changes, apply the correct v5 patterns, and ensure their data fetching logic is robust and performant.
Quick Start
Use the tanstack-query skill to understand the object syntax requirement for v5 useQuery.