What problem does it solve? React developers migrating from TanStack Query v4 to v5 hit breaking changes like removed query callbacks, renamed options (cacheTime to gcTime), and changed loading state semantics, while SSR hydration mismatches and optimistic update patterns remain hard to debug without version-specific guidance. ## Core Features & Use Cases - v5 Migration & Error Prevention: Documents 16 known issues including object syntax requirements, isPending vs isLoading semantics, initialPageParam requirements, and mutation callback signature changes, each with before/after code fixes. - Modern v5 Patterns: Covers useMutationState for cross-component mutation tracking, simplified optimistic updates without cache rollback, network modes for offline/PWA support, and infiniteQueryOptions with maxPages memory limits. - Production Templates & References: Provides ready-to-use QueryClient configuration, provider setup, error boundary components, custom hooks patterns, testing guides with MSW, and TypeScript patterns including Zod validation. - Use Case: When a Next.js app throws hydration errors after adding server-side prefetching, consult the known issues section to find the exact workaround (use useSuspenseQuery or await prefetch) instead of debugging for hours. ## Quick Start Ask the assistant to set up TanStack Query v5 in your React project with a configured QueryClient, provider, and a typed query hook for your API endpoint.