Skip to content

Commit ee5c238

Browse files
authored
Merge branch 'reactjs:main' into patch-38
2 parents bd2b8e0 + a1c885c commit ee5c238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/useTransition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ startTransition(async () => {
17171717
```js
17181718
startTransition(async () => {
17191719
await someAsyncFunction();
1720-
// ✅ 在 startTransition **之后** 再 await
1720+
// ✅ 在 await 之后 调用 startTransition
17211721
startTransition(() => {
17221722
setPage('/about');
17231723
});

0 commit comments

Comments
 (0)