What problem does it solve?
TanStack Query v5 takes the friction out of React server state by turning manual fetch, cache, loading, error, and mutation logic into predictable patterns. It is especially useful when a project needs to migrate from v4, fix hydration issues, or standardize data fetching across many components.
Core Features & Use Cases
- Query and mutation patterns: Set up reusable queryOptions, mutations, invalidation, and optimistic UI updates.
- Advanced React support: Handle infinite queries, parallel queries, offline-first network modes, and error boundaries.
- Migration and debugging: Correct common v4-to-v5 changes such as object syntax, gcTime, isPending, placeholderData, and throwOnError.
- Real-world use case: Clean up a todo, user, or dashboard data layer so every component shares the same cache and loading behavior.
Quick Start
Ask the skill to review your TanStack Query code and rewrite it for v5 with the correct hooks, caching, and migration fixes.