Skip to content

Commit e1b8866

Browse files
committed
Clarify standalone startTransition error reporting
1 parent e308481 commit e1b8866

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎src/content/reference/react/startTransition.md‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,7 @@ With a Transition, your UI stays responsive in the middle of a re-render. For ex
9292

9393
<Note>
9494

95-
`startTransition` is very similar to
96-
[`useTransition`](/reference/react/useTransition), except that it does not
97-
provide the `isPending` flag to track whether a Transition is ongoing. The
98-
standalone function is also not associated with a component, so if the function
99-
passed to it throws an error or returns a rejected Promise, React reports the
100-
error as uncaught. You can call `startTransition` when `useTransition` is not
101-
available. For example, `startTransition` works outside components, such as from
102-
a data library.
95+
`startTransition` is very similar to [`useTransition`](/reference/react/useTransition), except that it does not provide the `isPending` flag to track whether a Transition is ongoing. The standalone function is also not associated with a component, so if the function passed to it throws an error or returns a rejected Promise, React reports the error with [`reportError`](https://developer.mozilla.org/en-US/docs/Web/API/Window/reportError). You can call `startTransition` when `useTransition` is not available. For example, `startTransition` works outside components, such as from a data library.
10396

10497
[Learn about Transitions and see examples on the `useTransition` page.](/reference/react/useTransition)
10598

0 commit comments

Comments
 (0)