Skip to content

Commit 56c48f7

Browse files
committed
[Fizz] Postponing in the shell (#27569)
When we postpone a prerender in the shell, we should just leave an empty prelude and resume from the root. While preserving any options passed in. Since we haven't flushed anything we can't assume we've already emitted html/body tags or any resources tracked in the resumable state. This introduces a resetResumableState function to reset anything we didn't flush. This is a bit hacky. Ideally, we probably shouldn't have tracked it as already happened until it flushed or something like that. Basically, it's like restarting the prerender with the same options and then immediately aborting. When we add the preload headers, we'd track those as preload() being emitted after the reset and so they get readded to the resumable state in that case. DiffTrain build for commit 05fbd1a.
1 parent d763d10 commit 56c48f7

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24887,7 +24887,7 @@ function createFiberRoot(
2488724887
return root;
2488824888
}
2488924889

24890-
var ReactVersion = "18.3.0-canary-779d59374-20231023";
24890+
var ReactVersion = "18.3.0-canary-05fbd1aab-20231023";
2489124891

2489224892
// Might add PROFILE later.
2489324893

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9024,7 +9024,7 @@ var devToolsConfig$jscomp$inline_1032 = {
90249024
throw Error("TestRenderer does not support findFiberByHostInstance()");
90259025
},
90269026
bundleType: 0,
9027-
version: "18.3.0-canary-779d59374-20231023",
9027+
version: "18.3.0-canary-05fbd1aab-20231023",
90289028
rendererPackageName: "react-test-renderer"
90299029
};
90309030
var internals$jscomp$inline_1225 = {
@@ -9055,7 +9055,7 @@ var internals$jscomp$inline_1225 = {
90559055
scheduleRoot: null,
90569056
setRefreshHandler: null,
90579057
getCurrentFiber: null,
9058-
reconcilerVersion: "18.3.0-canary-779d59374-20231023"
9058+
reconcilerVersion: "18.3.0-canary-05fbd1aab-20231023"
90599059
};
90609060
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
90619061
var hook$jscomp$inline_1226 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9450,7 +9450,7 @@ var devToolsConfig$jscomp$inline_1074 = {
94509450
throw Error("TestRenderer does not support findFiberByHostInstance()");
94519451
},
94529452
bundleType: 0,
9453-
version: "18.3.0-canary-779d59374-20231023",
9453+
version: "18.3.0-canary-05fbd1aab-20231023",
94549454
rendererPackageName: "react-test-renderer"
94559455
};
94569456
var internals$jscomp$inline_1266 = {
@@ -9481,7 +9481,7 @@ var internals$jscomp$inline_1266 = {
94819481
scheduleRoot: null,
94829482
setRefreshHandler: null,
94839483
getCurrentFiber: null,
9484-
reconcilerVersion: "18.3.0-canary-779d59374-20231023"
9484+
reconcilerVersion: "18.3.0-canary-05fbd1aab-20231023"
94859485
};
94869486
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
94879487
var hook$jscomp$inline_1267 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-canary-779d59374-20231023";
30+
var ReactVersion = "18.3.0-canary-05fbd1aab-20231023";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,4 +580,4 @@ exports.useSyncExternalStore = function (
580580
exports.useTransition = function () {
581581
return ReactCurrentDispatcher.current.useTransition();
582582
};
583-
exports.version = "18.3.0-canary-779d59374-20231023";
583+
exports.version = "18.3.0-canary-05fbd1aab-20231023";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ exports.useSyncExternalStore = function (
583583
exports.useTransition = function () {
584584
return ReactCurrentDispatcher.current.useTransition();
585585
};
586-
exports.version = "18.3.0-canary-779d59374-20231023";
586+
exports.version = "18.3.0-canary-05fbd1aab-20231023";
587587

588588
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
589589
if (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
779d59374e8e852ce00728d895156a7574e1b456
1+
05fbd1aab036ecbd14469d6376024439bc931f68

0 commit comments

Comments
 (0)