Skip to content

Commit c763eb2

Browse files
Clarify that Transition Actions can be asynchronous (#8696)
* docs: clarify that Transition Actions can be asynchronous * Keep async Action clarification focused * Clarify sync and async Transition callbacks --------- Co-authored-by: Aurora Scharff <aurora.sofie@gmail.com>
1 parent 89e8328 commit c763eb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ startTransition(() => {
16841684
});
16851685
```
16861686
1687-
The function you pass to `startTransition` must be synchronous. You can't mark an update as a Transition like this:
1687+
The function you pass to `startTransition` can be synchronous or asynchronous. However, updates scheduled in a `setTimeout` callback aren't marked as Transitions:
16881688
16891689
```js
16901690
startTransition(() => {

0 commit comments

Comments
 (0)