You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Promise resolves, React retries rendering the suspended content. This retry activates the enclosing `<ViewTransition>`, so this example does not need `startTransition`.
3046
+
3050
3047
---
3051
3048
3052
3049
### Waiting for an image to load {/*waiting-for-an-image-to-load*/}
@@ -3204,7 +3201,7 @@ For comparison, the version without React loads the same data and shows every re
@@ -3243,12 +3240,10 @@ export default function App() {
3243
3240
<>
3244
3241
<button
3245
3242
onClick={() => {
3246
-
startTransition(() => {
3247
-
setResources({
3248
-
quotePromise:fetchQuote(),
3249
-
stylesheet:freshStylesheetUrl(),
3250
-
image:freshImageUrl(),
3251
-
});
3243
+
setResources({
3244
+
quotePromise:fetchQuote(),
3245
+
stylesheet:freshStylesheetUrl(),
3246
+
image:freshImageUrl(),
3252
3247
});
3253
3248
}}>
3254
3249
Show profile
@@ -3401,15 +3396,17 @@ hr {
3401
3396
```json package.json hidden
3402
3397
{
3403
3398
"dependencies": {
3404
-
"react":"19.3.0-canary-f1f7ed2a-20260904",
3405
-
"react-dom":"19.3.0-canary-f1f7ed2a-20260904",
3399
+
"react":"19.3.0",
3400
+
"react-dom":"19.3.0",
3406
3401
"react-scripts":"latest"
3407
3402
}
3408
3403
}
3409
3404
```
3410
3405
3411
3406
</Sandpack>
3412
3407
3408
+
When the Promise resolves, React retries rendering the suspended content. This retry activates the enclosing `<ViewTransition>`, so this example does not need `startTransition`.
0 commit comments