Search across all documentation pages
14 pages in this section.
Explore 12 Next.js Data examples, including 8 basic and 4 intermediate, for Next.js 15+ App Router projects with TypeScript.
Fetch data directly in Next.js Server Components. Learn to use fetch with built-in caching, revalidation, and no-store options for efficient data loading.
Learn to mutate data directly from the server using "use server" functions, eliminating the need for API routes in Next.js applications.
Refresh cached data on demand or on a timer using revalidatePath, revalidateTag, and ISR. Learn how to implement time-based and tag-based revalidation.
Stream server-rendered content progressively with React Suspense boundaries and loading.tsx. Learn to implement instant loading UIs and granular streaming.
Understand the four caching layers in Next.js -- request memoization, data cache, full route cache, and router cache.
Read and manipulate URL query parameters in Next.js. Use searchParams for server components and useSearchParams for client components.
Read and set cookies and headers on the server using the cookies() and headers() APIs from next/headers to manage per-request data.
Learn to fetch multiple independent data sources in parallel using Promise.all, Promise.allSettled, Promise.race, and Promise.any.
Process large datasets, paginated APIs, and streaming data with async generators in Server Components and Route Handlers.
Build a single fetch utility that every client component references - consistent error handling, auth headers, base URL, and caching in one place.
Build a centralized API client with Axios - interceptors for auth, error handling, retries, and request/response transforms in one configured instance.
Learn 25 Next.js data best practices, including fetching in Server Components, parallelizing fetches, avoiding waterfalls, and using Promise.allSettled.
A single-page roundup of every highlight bullet from the 13 pages in the Next.js Data section, grouped by source page so you can scan all 78 takeaways without opening each article individually.