About
This skill provides a comprehensive framework for integrating TanStack Query (formerly React Query) into modern React and Next.js projects. It establishes a standardized approach to server-state management by implementing best practices such as centralized query key factories, type-safe data fetching, and optimistic UI updates. By automating the setup of QueryClients and providing patterns for infinite queries and prefetching, it helps developers handle complex async logic, background synchronization, and stale-time management with minimal boilerplate.