Skip to content

Commit 7b4965f

Browse files
committed
[Re-land] Make prerendering always non-blocking (#31268)
Follows #31238 ___ This is a partial re-land of #31056. We saw breakages surface after the original land and had to revert. Now that they've been fixed, let's try this again. This time we'll split up the commits to give us more control of testing and rollout internally. Original PR: #31056 Original Commit: 4c71025 Revert PR: #31080 Commit description: > 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. Co-authored-by: Andrew Clark <[email protected]> DiffTrain build for [6c4bbc7](6c4bbc7)
1 parent d3a3f5f commit 7b4965f

34 files changed

+6604
-6256
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13411e4589f3d999727c5322781e2dd7bef3b256
1+
6c4bbc783286bf6eebd9927cb52e8fec5ad4dd74
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13411e4589f3d999727c5322781e2dd7bef3b256
1+
6c4bbc783286bf6eebd9927cb52e8fec5ad4dd74

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,7 @@ __DEV__ &&
20172017
exports.useTransition = function () {
20182018
return resolveDispatcher().useTransition();
20192019
};
2020-
exports.version = "19.0.0-www-classic-13411e45-20241014";
2020+
exports.version = "19.0.0-www-classic-6c4bbc78-20241015";
20212021
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
20222022
"function" ===
20232023
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,7 @@ __DEV__ &&
19971997
exports.useTransition = function () {
19981998
return resolveDispatcher().useTransition();
19991999
};
2000-
exports.version = "19.0.0-www-modern-13411e45-20241014";
2000+
exports.version = "19.0.0-www-modern-6c4bbc78-20241015";
20012001
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
20022002
"function" ===
20032003
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,4 +824,4 @@ exports.useSyncExternalStore = function (
824824
exports.useTransition = function () {
825825
return ReactSharedInternals.H.useTransition();
826826
};
827-
exports.version = "19.0.0-www-classic-13411e45-20241014";
827+
exports.version = "19.0.0-www-classic-6c4bbc78-20241015";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,4 +820,4 @@ exports.useSyncExternalStore = function (
820820
exports.useTransition = function () {
821821
return ReactSharedInternals.H.useTransition();
822822
};
823-
exports.version = "19.0.0-www-modern-13411e45-20241014";
823+
exports.version = "19.0.0-www-modern-6c4bbc78-20241015";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ exports.useSyncExternalStore = function (
828828
exports.useTransition = function () {
829829
return ReactSharedInternals.H.useTransition();
830830
};
831-
exports.version = "19.0.0-www-classic-13411e45-20241014";
831+
exports.version = "19.0.0-www-classic-6c4bbc78-20241015";
832832
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
833833
"function" ===
834834
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ exports.useSyncExternalStore = function (
824824
exports.useTransition = function () {
825825
return ReactSharedInternals.H.useTransition();
826826
};
827-
exports.version = "19.0.0-www-modern-13411e45-20241014";
827+
exports.version = "19.0.0-www-modern-6c4bbc78-20241015";
828828
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
829829
"function" ===
830830
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)