Archive

#nextjs

26 notes match these filters

  • Next.js in Practice · Part 0313 min read

    Linking, Navigation and Prefetching

    What happens between a click on a Next.js Link and the new page on screen, how the segment cache prefetches and reuses route data, and when to use useRouter, useLinkStatus, scroll control or redirect in Next.js 16.4.3.

  • 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 0715 min read

    Server Actions and Forms

    How 'use server' functions become Server Actions in Next.js 16, from action IDs and encrypted closures in the compiler, through the client dispatch queue and the POST request, to the origin check, body limit and single-roundtrip re-render in action-handler.ts, plus forms with useActionState, useFormStatus, useOptimistic and next/form.

  • Next.js in Practice · Part 0211 min read

    Server and Client Components

    What 'use client' compiles to, why a Client Component still renders on the server, how the bundler splits one app into server, SSR and browser layers, and which props can cross the boundary in Next.js 16.4.3.

  • Next.js in Practice · Part 0612 min read

    Revalidation - Tags, Paths and Refresh

    How cached data gets fresh again in Next.js 16, covering time-based revalidation with cacheLife, revalidateTag with a profile, updateTag for read-your-own-writes, revalidatePath and its implicit path tags, refresh, and how an invalidation travels from a Server Action through the cache handlers to the client router.

  • Next.js in Practice · Part 1118 min read

    Configuration, Turbopack and Deployment

    How Next.js 16 loads next.config.ts, which options left experimental, how .env files and NEXT_PUBLIC_ inlining really work, why Turbopack is now the default bundler, and how to ship the result with output standalone, Docker, shared cache handlers, deploymentId and the Deployment Adapter API.

  • Next.js in Practice · Part 0918 min read

    Metadata, Images, Fonts and Scripts

    How Next.js 16 resolves metadata across segments and streams it, turns metadata files into route handlers, optimizes images on demand, self-hosts fonts at build time, and orders third-party scripts.

  • Next.js in Practice · Part 2413 min read

    CSR - Client-Rendered Islands

    How to render parts of an App Router page only in the browser, from fetch-on-mount and client data libraries to next/dynamic with ssr false and React's browser() bailout, and how Next.js 16.4.3 implements each one.