Skip to content

Commit f55a80d

Browse files
committed
[Fizz] Delay retrying hydration until after an animation frame (facebook#34220)
The theory here is that when we reveal a boundary coming from the server we want to paint that before hydrating it. Hydration gets scheduled in a macrotask with the scheduler but it's in theory possible that it runs before the paint. If that's the case, then the JS that runs before yielding during hydration might slightly delay the paint and we might miss a window to skip the previous paint. DiffTrain build for [7a36dfe](facebook@7a36dfe)
1 parent 88c10b4 commit f55a80d

37 files changed

+98
-97
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
546bac728125bed821c0205e3d7216a7c9a563cb
1+
7a36dfedc70ffb49be2e4e23b40e01d34cef267e
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
546bac728125bed821c0205e3d7216a7c9a563cb
1+
7a36dfedc70ffb49be2e4e23b40e01d34cef267e

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ __DEV__ &&
14091409
exports.useTransition = function () {
14101410
return resolveDispatcher().useTransition();
14111411
};
1412-
exports.version = "19.2.0-www-classic-546bac72-20250816";
1412+
exports.version = "19.2.0-www-classic-7a36dfed-20250816";
14131413
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14141414
"function" ===
14151415
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
@@ -1409,7 +1409,7 @@ __DEV__ &&
14091409
exports.useTransition = function () {
14101410
return resolveDispatcher().useTransition();
14111411
};
1412-
exports.version = "19.2.0-www-modern-546bac72-20250816";
1412+
exports.version = "19.2.0-www-modern-7a36dfed-20250816";
14131413
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14141414
"function" ===
14151415
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
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
600600
exports.useTransition = function () {
601601
return ReactSharedInternals.H.useTransition();
602602
};
603-
exports.version = "19.2.0-www-classic-546bac72-20250816";
603+
exports.version = "19.2.0-www-classic-7a36dfed-20250816";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
600600
exports.useTransition = function () {
601601
return ReactSharedInternals.H.useTransition();
602602
};
603-
exports.version = "19.2.0-www-modern-546bac72-20250816";
603+
exports.version = "19.2.0-www-modern-7a36dfed-20250816";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
604604
exports.useTransition = function () {
605605
return ReactSharedInternals.H.useTransition();
606606
};
607-
exports.version = "19.2.0-www-classic-546bac72-20250816";
607+
exports.version = "19.2.0-www-classic-7a36dfed-20250816";
608608
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
609609
"function" ===
610610
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
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
604604
exports.useTransition = function () {
605605
return ReactSharedInternals.H.useTransition();
606606
};
607-
exports.version = "19.2.0-www-modern-546bac72-20250816";
607+
exports.version = "19.2.0-www-modern-7a36dfed-20250816";
608608
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
609609
"function" ===
610610
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19588,10 +19588,10 @@ __DEV__ &&
1958819588
(function () {
1958919589
var internals = {
1959019590
bundleType: 1,
19591-
version: "19.2.0-www-classic-546bac72-20250816",
19591+
version: "19.2.0-www-classic-7a36dfed-20250816",
1959219592
rendererPackageName: "react-art",
1959319593
currentDispatcherRef: ReactSharedInternals,
19594-
reconcilerVersion: "19.2.0-www-classic-546bac72-20250816"
19594+
reconcilerVersion: "19.2.0-www-classic-7a36dfed-20250816"
1959519595
};
1959619596
internals.overrideHookState = overrideHookState;
1959719597
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19625,7 +19625,7 @@ __DEV__ &&
1962519625
exports.Shape = Shape;
1962619626
exports.Surface = Surface;
1962719627
exports.Text = Text;
19628-
exports.version = "19.2.0-www-classic-546bac72-20250816";
19628+
exports.version = "19.2.0-www-classic-7a36dfed-20250816";
1962919629
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1963019630
"function" ===
1963119631
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19359,10 +19359,10 @@ __DEV__ &&
1935919359
(function () {
1936019360
var internals = {
1936119361
bundleType: 1,
19362-
version: "19.2.0-www-modern-546bac72-20250816",
19362+
version: "19.2.0-www-modern-7a36dfed-20250816",
1936319363
rendererPackageName: "react-art",
1936419364
currentDispatcherRef: ReactSharedInternals,
19365-
reconcilerVersion: "19.2.0-www-modern-546bac72-20250816"
19365+
reconcilerVersion: "19.2.0-www-modern-7a36dfed-20250816"
1936619366
};
1936719367
internals.overrideHookState = overrideHookState;
1936819368
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19396,7 +19396,7 @@ __DEV__ &&
1939619396
exports.Shape = Shape;
1939719397
exports.Surface = Surface;
1939819398
exports.Text = Text;
19399-
exports.version = "19.2.0-www-modern-546bac72-20250816";
19399+
exports.version = "19.2.0-www-modern-7a36dfed-20250816";
1940019400
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1940119401
"function" ===
1940219402
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)