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
> Updates in a transition yield to more urgent updates such as clicks.
603
+
>
604
+
> Updates in a transitions will not show a fallback for re-suspended content. This allows the user to continue interacting with the current content while rendering the update.
Copy file name to clipboardExpand all lines: content/docs/reference-react.md
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -383,9 +383,12 @@ a higher priority than neighboring boundaries. [Read more](https://github.com/re
383
383
```js
384
384
React.startTransition(callback)
385
385
```
386
-
387
-
TODO: description
386
+
`React.startTransition` lets you mark updates inside the provided callback as transitions. This method is designed to be used when [`React.useTransition`](/docs/hooks-reference.html#usetransition) is not available.
388
387
389
388
> Note:
390
-
>
391
-
> TODO: useTransition
389
+
>
390
+
> Updates in a transition yield to more urgent updates such as clicks.
391
+
>
392
+
> Updates in a transitions will not show a fallback for re-suspended content, allowing the user to continue interacting while rendering the update.
393
+
>
394
+
> `React.startTransition` does not provide an `isPending` flag. To track the pending status of a transition see [`React.useTransition`](/docs/hooks-reference.html#usetransition).
0 commit comments