From 1b69e165d464b33ca40e986e46c76adf9b6e40d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=9F?= Date: Thu, 15 Oct 2026 21:01:10 +0900 Subject: [PATCH 1/3] docs: clarify that Transition Actions can be asynchronous --- src/content/reference/react/useTransition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/useTransition.md b/src/content/reference/react/useTransition.md index 6533a201bf3..9c64d0900dd 100644 --- a/src/content/reference/react/useTransition.md +++ b/src/content/reference/react/useTransition.md @@ -1684,7 +1684,7 @@ startTransition(() => { }); ``` -The function you pass to `startTransition` must be synchronous. You can't mark an update as a Transition like this: +The Action you pass to `startTransition` can be asynchronous. However, state updates scheduled in a `setTimeout` callback are not marked as Transitions, because the callback runs after the `startTransition` call has finished: ```js startTransition(() => { From d6cc5f1b0ca49c8e312cec640b645309a5728795 Mon Sep 17 00:00:00 2001 From: Aurora Scharff Date: Wed, 4 Nov 2026 18:48:08 -0600 Subject: [PATCH 2/3] Keep async Action clarification focused --- src/content/reference/react/useTransition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/useTransition.md b/src/content/reference/react/useTransition.md index 9c64d0900dd..e615f402b1b 100644 --- a/src/content/reference/react/useTransition.md +++ b/src/content/reference/react/useTransition.md @@ -1684,7 +1684,7 @@ startTransition(() => { }); ``` -The Action you pass to `startTransition` can be asynchronous. However, state updates scheduled in a `setTimeout` callback are not marked as Transitions, because the callback runs after the `startTransition` call has finished: +The Action you pass to `startTransition` can be asynchronous. You can't mark an update as a Transition like this: ```js startTransition(() => { From fd39ee3ea626db339a5faf9633a68b0f9c7c53b8 Mon Sep 17 00:00:00 2001 From: Aurora Scharff Date: Wed, 4 Nov 2026 18:51:27 -0600 Subject: [PATCH 3/3] Clarify sync and async Transition callbacks --- src/content/reference/react/useTransition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/useTransition.md b/src/content/reference/react/useTransition.md index e615f402b1b..3a0ec15343e 100644 --- a/src/content/reference/react/useTransition.md +++ b/src/content/reference/react/useTransition.md @@ -1684,7 +1684,7 @@ startTransition(() => { }); ``` -The Action you pass to `startTransition` can be asynchronous. You can't mark an update as a Transition like this: +The function you pass to `startTransition` can be synchronous or asynchronous. However, updates scheduled in a `setTimeout` callback aren't marked as Transitions: ```js startTransition(() => {