Skip to content

Commit 790edb8

Browse files
committed
Remove repeated startTransition caveat
1 parent f54d0cd commit 790edb8

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ function TabContainer() {
5757
state updates that happen while it executes as Transitions. If you try to
5858
perform state updates in a `setTimeout`, for example, they won't be marked as
5959
Transitions. If the function throws an error or returns a rejected Promise,
60-
React reports the error as uncaught. Unlike the `startTransition` function
61-
returned by
62-
[`useTransition`](/reference/react/useTransition#displaying-an-error-to-users-with-error-boundary),
63-
the standalone `startTransition` function is not associated with a component,
64-
so an Error Boundary does not handle these errors.
60+
React reports the error as uncaught because the standalone `startTransition`
61+
function is not associated with a component. [Learn how to display errors
62+
from `useTransition` with an Error
63+
Boundary.](/reference/react/useTransition#displaying-an-error-to-users-with-error-boundary)
6564

6665
* You must wrap any state updates after any async requests in another `startTransition` to mark them as Transitions. This is a known limitation that we will fix in the future (see [Troubleshooting](/reference/react/useTransition#react-doesnt-treat-my-state-update-after-await-as-a-transition)).
6766

@@ -102,11 +101,8 @@ With a Transition, your UI stays responsive in the middle of a re-render. For ex
102101

103102
The standalone `startTransition` and the function returned by
104103
[`useTransition`](/reference/react/useTransition) both mark state updates as
105-
Transitions. The standalone function does not provide the `isPending` flag and
106-
is not associated with a component. If the function passed to it throws an
107-
error or returns a rejected Promise, React reports the error as uncaught instead
108-
of allowing an Error Boundary to handle it. Unlike `useTransition`, the
109-
standalone `startTransition` is not a Hook and can be called outside components.
104+
Transitions. Unlike `useTransition`, the standalone function does not provide
105+
the `isPending` flag. It is not a Hook, so you can call it outside components.
110106
[See Caveats.](#caveats)
111107

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

0 commit comments

Comments
 (0)