Skip to content

Commit fadd1ee

Browse files
committed
[Fizz] Add resumeAndPrerender to Static Rendering (#30950)
This is only in the same experimental exports as `resume`. Useful with Postpone/Halt. We already have `prerender()` to create a partial tree with postponed state. We also have `resume()` to dynamically resume such a tree. This lets you do a new prerender by resuming an already existing postponed state. Basically creating a chain of preludes. The next prelude would include the scripts to patch up the document. This mostly just works since both prerender and resume are already implemented using the same code so we just enable both at the root. I'm sure we'll find some edge cases since this wasn't considered when it was first written but so far I've only found an unrelated existing bug with `keyPath` fixed here. DiffTrain build for [4735220](4735220)
1 parent ed8cad4 commit fadd1ee

36 files changed

+92
-86
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d6cb4e771341ff82489c00f4907990cb8a75696b
1+
473522093d3dd95582729d01cd5c0d15dcc9cd3b
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d6cb4e771341ff82489c00f4907990cb8a75696b
1+
473522093d3dd95582729d01cd5c0d15dcc9cd3b

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ __DEV__ &&
20012001
exports.useTransition = function () {
20022002
return resolveDispatcher().useTransition();
20032003
};
2004-
exports.version = "19.0.0-www-classic-d6cb4e77-20240911";
2004+
exports.version = "19.0.0-www-classic-47352209-20240912";
20052005
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
20062006
"function" ===
20072007
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
@@ -1981,7 +1981,7 @@ __DEV__ &&
19811981
exports.useTransition = function () {
19821982
return resolveDispatcher().useTransition();
19831983
};
1984-
exports.version = "19.0.0-www-modern-d6cb4e77-20240911";
1984+
exports.version = "19.0.0-www-modern-47352209-20240912";
19851985
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19861986
"function" ===
19871987
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
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
665665
exports.useTransition = function () {
666666
return ReactSharedInternals.H.useTransition();
667667
};
668-
exports.version = "19.0.0-www-classic-d6cb4e77-20240911";
668+
exports.version = "19.0.0-www-classic-47352209-20240912";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
665665
exports.useTransition = function () {
666666
return ReactSharedInternals.H.useTransition();
667667
};
668-
exports.version = "19.0.0-www-modern-d6cb4e77-20240911";
668+
exports.version = "19.0.0-www-modern-47352209-20240912";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-classic-d6cb4e77-20240911";
672+
exports.version = "19.0.0-www-classic-47352209-20240912";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
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
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-modern-d6cb4e77-20240911";
672+
exports.version = "19.0.0-www-modern-47352209-20240912";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
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
@@ -17062,11 +17062,11 @@ __DEV__ &&
1706217062
(function () {
1706317063
var internals = {
1706417064
bundleType: 1,
17065-
version: "19.0.0-www-classic-d6cb4e77-20240911",
17065+
version: "19.0.0-www-classic-47352209-20240912",
1706617066
rendererPackageName: "react-art",
1706717067
currentDispatcherRef: ReactSharedInternals,
1706817068
findFiberByHostInstance: getInstanceFromNode,
17069-
reconcilerVersion: "19.0.0-www-classic-d6cb4e77-20240911"
17069+
reconcilerVersion: "19.0.0-www-classic-47352209-20240912"
1707017070
};
1707117071
internals.overrideHookState = overrideHookState;
1707217072
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -17100,7 +17100,7 @@ __DEV__ &&
1710017100
exports.Shape = Shape;
1710117101
exports.Surface = Surface;
1710217102
exports.Text = Text;
17103-
exports.version = "19.0.0-www-classic-d6cb4e77-20240911";
17103+
exports.version = "19.0.0-www-classic-47352209-20240912";
1710417104
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1710517105
"function" ===
1710617106
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
@@ -16508,11 +16508,11 @@ __DEV__ &&
1650816508
(function () {
1650916509
var internals = {
1651016510
bundleType: 1,
16511-
version: "19.0.0-www-modern-d6cb4e77-20240911",
16511+
version: "19.0.0-www-modern-47352209-20240912",
1651216512
rendererPackageName: "react-art",
1651316513
currentDispatcherRef: ReactSharedInternals,
1651416514
findFiberByHostInstance: getInstanceFromNode,
16515-
reconcilerVersion: "19.0.0-www-modern-d6cb4e77-20240911"
16515+
reconcilerVersion: "19.0.0-www-modern-47352209-20240912"
1651616516
};
1651716517
internals.overrideHookState = overrideHookState;
1651816518
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16546,7 +16546,7 @@ __DEV__ &&
1654616546
exports.Shape = Shape;
1654716547
exports.Surface = Surface;
1654816548
exports.Text = Text;
16549-
exports.version = "19.0.0-www-modern-d6cb4e77-20240911";
16549+
exports.version = "19.0.0-www-modern-47352209-20240912";
1655016550
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1655116551
"function" ===
1655216552
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)