Skip to content

Clarify error handling for standalone startTransition - #8648

Open
aurorascharff wants to merge 7 commits into
reactjs:mainfrom
aurorascharff:codex/document-starttransition-error-boundaries
Open

Clarify error handling for standalone startTransition#8648
aurorascharff wants to merge 7 commits into
reactjs:mainfrom
aurorascharff:codex/document-starttransition-error-boundaries

Conversation

@aurorascharff

@aurorascharff aurorascharff commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • document the pending-state, component-association, and error-handling differences between the standalone startTransition function and the function returned by useTransition
  • clarify that errors from a standalone Action are reported as uncaught, while errors from an Action passed to the hook-returned function can be handled by the component's nearest Error Boundary
  • note that the standalone function is not a Hook and can also be called outside components

Validation

  • yarn eslint src/content/reference/react/startTransition.md src/content/reference/react/useTransition.md
  • yarn lint-heading-ids
  • yarn tsc
  • git diff --check

@github-actions

github-actions Bot commented Sep 9, 2026

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.

1 participant