What problem does it solve?
Simplifies management of asynchronous server data in React client components by providing caching, background updates, and mutation handling that reduce boilerplate and prevent inconsistent UI states.
Core Features & Use Cases
- Declarative data fetching for list views, detail pages, and paginated queries with automatic cache management.
- Mutation patterns with onSuccess and onError callbacks and recommended invalidation strategies to keep caches synchronized after create, update, or delete operations.
- Structured query key conventions and naming patterns for hooks, plus the requirement to mark client hooks with use client to ensure correct runtime behavior.
- Use case: implement a services table with list, detail, create, update, and delete flows where UI updates reliably reflect server state.
Quick Start
Use the React-Query skill to implement a client-side data fetching hook for listing services and ensure queries are invalidated after create or update operations.