TanStack Query with Next.js App Router: Server Prefetching, Hydration, and Mutations (2026)
Prefetch on the server, hydrate on the client. A 2026 guide to using TanStack Query v5 with the Next.js 16 App Router: HydrationBoundary, streaming, Server Actions, and the common hydration errors that break RSC setups.
