Skip to content

Commit

Permalink
Make prerendering always non-blocking (#31056)
Browse files Browse the repository at this point in the history
When a synchronous update suspends, and we prerender the siblings, the
prerendering should be non-blocking so that we can immediately restart
once the data arrives.

This happens automatically when there's a Suspense boundary, because we
immediately commit the boundary and then proceed to a Retry render,
which are always concurrent. When there's not a Suspense boundary, there
is no Retry, so we need to take care to switch from the synchronous work
loop to the concurrent one, to enable time slicing.

DiffTrain build for commit 0f1856c.
  • Loading branch information
acdlite committed Sep 25, 2024
1 parent cae834f commit 64e263f
Show file tree
Hide file tree
Showing 23 changed files with 5,009 additions and 4,852 deletions.
2 changes: 1 addition & 1 deletion compiled-rn/VERSION_NATIVE_FB
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.0.0-native-fb-3c7667a6-20240925
19.0.0-native-fb-0f1856c4-20240925
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b5197c15cfc4e771615c7ad354157216>>
* @generated SignedSource<<abebda03294fad7cb3858d1b5d97fe36>>
*/

"use strict";
Expand Down Expand Up @@ -420,5 +420,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<547023b89ae2d39a60356535570a6d4a>>
* @generated SignedSource<<80a716efe68d232a2259f9d368a23144>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<547023b89ae2d39a60356535570a6d4a>>
* @generated SignedSource<<80a716efe68d232a2259f9d368a23144>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-3c7667a6-20240925";
exports.version = "19.0.0-native-fb-0f1856c4-20240925";

Large diffs are not rendered by default.

Loading

0 comments on commit 64e263f

Please sign in to comment.