Skip to content

Commit 9ef7a8d

Browse files
committed
update
1 parent acad606 commit 9ef7a8d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/routes/reference/reactive-utilities/use-transition.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ Returns a tuple containing:
4747

4848
## Behavior
4949

50-
- `start` schedules updates inside a transition.
51-
- `pending()` is `true` while the transition is pending.
50+
- `start` is the same transition-starting function exposed by [`startTransition`](/reference/reactive-utilities/start-transition).
51+
- `pending()` reflects whether that transition is still pending.
5252
- Transition state integrates with Suspense and resource reads under Suspense boundaries.
53+
- On the server, `pending()` is `false` and transitions run synchronously.
5354

5455
## Examples
5556

@@ -65,8 +66,8 @@ function Example() {
6566
return (
6667
<>
6768
<button
68-
onClick={() => {
69-
start(() => setValue("next"));
69+
onClick={async () => {
70+
await start(() => setValue("next"));
7071
}}
7172
>
7273
Update

0 commit comments

Comments
 (0)