Archive

#data-fetching

3 notes match these filters

  • Next.js in Practice · Part 0412 min read

    Data Fetching and Streaming

    How Server Components fetch data in Next.js 16, why params, searchParams, cookies() and headers() are promises, how fetch is deduplicated per request, how loading.tsx and Suspense stream the page, and how to avoid waterfalls and hand promises to Client Components with use().

  • Next.js in Practice · Part 2617 min read

    TanStack Query - Server Prefetch and Hydration

    A complete, copy-pasteable TanStack Query v5 setup for the Next.js 16.4.3 App Router - per-request clients, server prefetch with streamed pending queries, HydrationBoundary, useSuspenseQuery, mutations that invalidate both caches, Cache Components, and the pitfalls.