Client Data Fetching
Configures TanStack Query v5 with Next.js App Router for seamless server prefetching, hydration, and cache management without double fetches.
Client Data Fetching provides structured patterns and best practices for integrating TanStack Query v5 into Next.js App Router projects. It guides developers on optimal QueryClient provider placement across server and client boundaries, implementing dehydrated state prefetching in React Server Components (RSC) with HydrationBoundary, and fine-tuning staleTime and gcTime defaults for dashboards versus public pages. By enforcing consistent query key management, secure mutation handling with targeted invalidation, and prevention of double fetches, this skill ensures robust client-side state synchronization without fighting the Next.js App Router.