Skip to content

docs: update startTransition async guidance for React 19#8496

Draft
LuxologyGG wants to merge 1 commit into
reactjs:mainfrom
LuxologyGG:fix/auto-issue-7172
Draft

docs: update startTransition async guidance for React 19#8496
LuxologyGG wants to merge 1 commit into
reactjs:mainfrom
LuxologyGG:fix/auto-issue-7172

Conversation

@LuxologyGG

@LuxologyGG LuxologyGG commented Jun 23, 2026

Copy link
Copy Markdown

Summary

Closes #7172

The startTransition docs still described async Actions as a limitation that required wrapping state updates after await in another startTransition call. In React 19, useTransition supports async Actions, and updates after await are included in the Transition automatically.

This PR updates the startTransition and useTransition reference pages to document async Action support, clarifies that the post-await wrapping requirement only applies to the standalone startTransition function, and updates a related useActionState caveat that pointed to the old guidance.

Before / After

Before: Both standalone startTransition and useTransition were documented as requiring a second startTransition call after await.

After: useTransition's startTransition in React 19 includes post-await updates automatically; standalone startTransition still requires explicit wrapping after await.

Test plan

  • Verified wording on /reference/react/startTransition and /reference/react/useTransition
  • Confirmed troubleshooting anchor links still resolve

Clarify that useTransition supports async Actions in React 19, including
state updates after await. Reserve the post-await wrapping requirement for
standalone startTransition. Rephrase troubleshooting to avoid implying
async callbacks are disallowed.

Fixes reactjs#7172
@github-actions

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Typo]: change info about startTransition, now can be used with async func

2 participants