Skip to content

Commit

Permalink
[Static][Fizz] Carry forward bootstrap config to resume if postponing…
Browse files Browse the repository at this point in the history
… in the shell (#27672)

Previously it was possible to postpone in the shell during a prerender
and then during a resume the bootstrap scripts would not be emitted
leading to no hydration on the client. This change moves the bootstrap
configuration to `ResumableState` where it can be serialized after
postponing if it wasn't flushed as part of the static shell.

DiffTrain build for commit 7508dcd.
  • Loading branch information
gnoff committed Nov 8, 2023
1 parent 12014b3 commit 742efbd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25356,7 +25356,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-canary-88b00dec4-20231108";
var ReactVersion = "18.3.0-canary-7508dcd5c-20231108";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9044,7 +9044,7 @@ var devToolsConfig$jscomp$inline_1033 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-88b00dec4-20231108",
version: "18.3.0-canary-7508dcd5c-20231108",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1226 = {
Expand Down Expand Up @@ -9075,7 +9075,7 @@ var internals$jscomp$inline_1226 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-88b00dec4-20231108"
reconcilerVersion: "18.3.0-canary-7508dcd5c-20231108"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1227 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9470,7 +9470,7 @@ var devToolsConfig$jscomp$inline_1075 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-88b00dec4-20231108",
version: "18.3.0-canary-7508dcd5c-20231108",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1267 = {
Expand Down Expand Up @@ -9501,7 +9501,7 @@ var internals$jscomp$inline_1267 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-88b00dec4-20231108"
reconcilerVersion: "18.3.0-canary-7508dcd5c-20231108"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1268 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "18.3.0-canary-88b00dec4-20231108";
var ReactVersion = "18.3.0-canary-7508dcd5c-20231108";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,4 +580,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-88b00dec4-20231108";
exports.version = "18.3.0-canary-7508dcd5c-20231108";
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-88b00dec4-20231108";
exports.version = "18.3.0-canary-7508dcd5c-20231108";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
88b00dec4778ffa230cceca81af3328f49e1efd9
7508dcd5cc245e376860d65402972e418199264d

0 comments on commit 742efbd

Please sign in to comment.