What problem does it solve?
This Skill helps developers efficiently manage server state in React applications, simplifying data fetching, caching, and synchronization, especially during complex migrations or when building offline-first applications.
Core Features & Use Cases
- Modern Data Fetching: Implement advanced data fetching patterns with TanStack Query v5, including
useMutationState, optimistic updates, and throwOnError.
- Migration Assistance: Resolve common migration issues from v4 to v5, such as object syntax changes,
gcTime vs cacheTime, and isPending state.
- Offline & SSR Support: Configure network modes for PWA support and debug Server-Side Rendering (SSR) and hydration issues.
- Use Case: When migrating a large React application from React Query v4 to v5, use this Skill to understand breaking changes, apply necessary code transformations, and ensure seamless data fetching and state management.
Quick Start
Use the tanstack-query skill to set up the QueryClientProvider with ReactQueryDevtools in your main application file.