Skip to content

Commit fd39ee3

Browse files
committed
Clarify sync and async Transition callbacks
1 parent d6cc5f1 commit fd39ee3

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 Action you pass to `startTransition` can be asynchronous. 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)