File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/routes/reference/reactive-utilities Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments