Skip to content

docs: draftMode alignment#92794

Merged
aurorascharff merged 2 commits into
canaryfrom
worktree-update-draft-mode-docs
Apr 15, 2026
Merged

docs: draftMode alignment#92794
aurorascharff merged 2 commits into
canaryfrom
worktree-update-draft-mode-docs

Conversation

@icyJoseph
Copy link
Copy Markdown
Member

@icyJoseph icyJoseph commented Apr 14, 2026

@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 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 14, 2026

All broken links are now fixed, thank you!

@icyJoseph icyJoseph force-pushed the worktree-update-draft-mode-docs branch from 9ca1126 to 22bdd1d Compare April 14, 2026 18:45
Copy link
Copy Markdown
Contributor

@gnoff gnoff left a comment

Choose a reason for hiding this comment

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

Approved with nits

Comment thread docs/01-app/02-guides/draft-mode.mdx Outdated
cursor Bot pushed a commit to gaojude/next.js that referenced this pull request Apr 14, 2026
Frames PR vercel#92794 (docs: draftMode alignment) as an agent eval.

Tests whether a coding agent correctly wires draftMode() inside a
"use cache" scope:
- Uses "use cache" directive for caching
- Reads draftMode().isEnabled inside the cache boundary (async)
- Conditionally fetches draft vs published content
- Does NOT call enable()/disable() inside cache scope
- Does NOT call cookies()/headers() inside cache scope
- Enables useCache or cacheComponents in next.config
- Avoids deprecated caching patterns
@icyJoseph icyJoseph marked this pull request as ready for review April 14, 2026 23:50
@aurorascharff aurorascharff merged commit ab4ec43 into canary Apr 15, 2026
77 checks passed
@aurorascharff aurorascharff deleted the worktree-update-draft-mode-docs branch April 15, 2026 09:06
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants