Conversation
Both became stable in React 19.3 and both have reference pages and sidebar entries, but neither is listed on its overview page: - `<ViewTransition>` is missing from Built-in React Components, which already lists its 19.3 sibling `<Activity>`. - `addTransitionType` is missing from Built-in React APIs, which already lists `cache`, `cacheSignal` and `captureOwnerStack`. CONTRIBUTING.md says the API Reference "is intended to be exhaustive", so a reader browsing either overview page currently can't discover either API. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Adds missing stable React API entries to the reference overview pages.
Changes:
- Adds
<ViewTransition>to Built-in React Components. - Adds
addTransitionTypeto Built-in React APIs.
| File | Changes |
|---|---|
src/content/reference/react/components.md |
Adds the <ViewTransition> overview entry. |
src/content/reference/react/apis.md |
Adds the addTransitionType overview entry. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Size changesDetails📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
<ViewTransition>andaddTransitionTypeboth became stable in React 19.3, and both have reference pages and sidebar entries — but neither is listed on the overview page it belongs to.<ViewTransition>addTransitionTypeThe gap is visible next to their siblings:
components.mdalready lists<Activity>, which went stable in the same release, andapis.mdalready listscache,cacheSignalandcaptureOwnerStack.CONTRIBUTING.md says the API Reference "is intended to be exhaustive", and these overview pages are where people browse to find out what exists. Right now you can only reach either API from the sidebar or from a cross-link on a neighbouring page.
The entries
Both descriptions are taken from each page's own
<Intro>. "Transition" is capitalized per the style guide's "Always capitalize React concepts such as Hooks, Effects, and Transitions".addTransitionTypeis placed directly afterstartTransitionsince it's called alongside it.Checks
<Canary>or<Experimental>badge, and the React 19.3 post says View Transitions are "stable and ready to use" — so these belong in the stable indexes.sidebarReference.jsonexactly.useOptimisticis a third instance of this same gap on the Hooks page, but that one is already covered by docs: Add useOptimistic hook description to hooks reference page #8571, docs: add useOptimistic to Hooks overview #8584 and docs: add useOptimistic to Built-in React Hooks overview #8625, so it's left out of this PR.🤖 Generated with Claude Code