You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is associated with a component, so the nearest Error Boundary can handle
60
+
these errors.
60
61
61
62
* You can wrap an update into a Transition only if you have access to the `set` function of that state. If you want to start a Transition in response to some prop or a custom Hook return value, try [`useDeferredValue`](/reference/react/useDeferredValue) instead.
62
63
@@ -99,11 +100,12 @@ With a Transition, your UI stays responsive in the middle of a re-render. For ex
99
100
100
101
<Note>
101
102
102
-
`startTransition` does not provide the `isPending` flag. Call it from code that
103
-
cannot call Hooks, such as data-library code outside a component. Unlike the
104
-
function returned by [`useTransition`](/reference/react/useTransition), the
105
-
standalone `startTransition` is not associated with a component. As a result,
106
-
an Error Boundary cannot handle errors from its Action. [See Caveats.](#caveats)
103
+
The standalone `startTransition` and the function returned by
104
+
[`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, so an Error Boundary cannot handle errors
107
+
from its Action. Unlike `useTransition`, the standalone `startTransition` is not
108
+
a Hook and can be called outside components. [See Caveats.](#caveats)
107
109
108
110
[Learn about Transitions and see examples on the `useTransition` page.](/reference/react/useTransition)
0 commit comments