Skip to content

docs: note PPR default in cacheComponents reference#92378

Open
aurorascharff wants to merge 2 commits intocanaryfrom
docs/cache-components-ppr-callout
Open

docs: note PPR default in cacheComponents reference#92378
aurorascharff wants to merge 2 commits intocanaryfrom
docs/cache-components-ppr-callout

Conversation

@aurorascharff
Copy link
Copy Markdown
Member

What?

Add a Good to know callout on the cacheComponents API reference, placed after the Usage list and before Navigation with Activity.

Why?

Developers enabling cacheComponents: true may see routes built as partial prerenders (◐ (Partial Prerender)) without ever turning on a separate PPR flag. The Caching getting-started guide already explains PPR as the default with Cache Components; this surfaces the same idea on the config page people often open first, and points to migration context for Next.js 15 experimental PPR.

How?

Single callout: PPR is used with the flag, legacy experimental.ppr / experimental_ppr are superseded, in next build is expected, with links to How rendering works and Partial Prerendering (PPR) in the Version 16 upgrade guide.

PR checklist (Improving Documentation)

Made with Cursor

Add a Good to know callout before Navigation with Activity: cacheComponents
enables PPR, replaces legacy experimental flags, and explains Partial
Prerender in build output with links to Caching and the v16 upgrade guide.

Made-with: Cursor
@nextjs-bot nextjs-bot added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Apr 5, 2026
@aurorascharff aurorascharff marked this pull request as ready for review April 5, 2026 10:08
Copilot AI review requested due to automatic review settings April 5, 2026 10:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “Good to know” callout to the cacheComponents API reference to clarify that enabling cacheComponents: true implies Partial Prerendering (PPR) behavior (including ◐ (Partial Prerender) build output) and to point readers to relevant rendering and migration docs.

Changes:

  • Add a callout explaining PPR is the default behavior when cacheComponents is enabled.
  • Clarify that legacy experimental PPR config/route segment config is superseded and link to rendering + upgrade guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- The [`cacheLife` function](/docs/app/api-reference/config/next-config-js/cacheLife) with `use cache`
- The [`cacheTag` function](/docs/app/api-reference/functions/cacheTag)

> **Good to know:** With `cacheComponents` enabled, Next.js uses **Partial Prerendering (PPR)** for the App Router. That replaces the older `experimental.ppr` config and `experimental_ppr` route segment, so `◐ (Partial Prerender)` in `next build` output is expected. Read [How rendering works](/docs/app/getting-started/caching#how-rendering-works) for how the static shell and streaming fit together. If you used experimental PPR on Next.js 15, follow [Partial Prerendering (PPR)](/docs/app/guides/upgrading/version-16#partial-prerendering-ppr) in the Version 16 upgrade guide when you migrate.
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file already uses a different callout label format later (> **Good to know**:). To keep the page consistent, consider aligning this new callout’s label punctuation with the existing one (or updating both to the repo-standard > **Good to know:**).

Copilot uses AI. Check for mistakes.
Match Good to know colon style with the Activity callout and split the PPR
note into short blockquote paragraphs for readability.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants