Skip to content

Commit 79f5d01

Browse files
committed
Remove revertRemovalOfSiblingPrerendering killswitch (#26549)
removal of sibling prerendering has been rolled out at Meta. We can delete the flag now. DiffTrain build for commit 7b0642b.
1 parent c650bf1 commit 79f5d01

File tree

13 files changed

+52
-49
lines changed

13 files changed

+52
-49
lines changed

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21432,15 +21432,13 @@ function completeUnitOfWork(unitOfWork) {
2143221432

2143321433
do {
2143421434
{
21435-
{
21436-
if ((completedWork.flags & Incomplete) !== NoFlags$1) {
21437-
// NOTE: If we re-enable sibling prerendering in some cases, this branch
21438-
// is where we would switch to the unwinding path.
21439-
error(
21440-
"Internal React error: Expected this fiber to be complete, but " +
21441-
"it isn't. It should have been unwound. This is a bug in React."
21442-
);
21443-
}
21435+
if ((completedWork.flags & Incomplete) !== NoFlags$1) {
21436+
// NOTE: If we re-enable sibling prerendering in some cases, this branch
21437+
// is where we would switch to the unwinding path.
21438+
error(
21439+
"Internal React error: Expected this fiber to be complete, but " +
21440+
"it isn't. It should have been unwound. This is a bug in React."
21441+
);
2144421442
}
2144521443
} // The current, flushed, state of this fiber is the alternate. Ideally
2144621444
// nothing should rely on this, but relying on it here means that we don't
@@ -21539,7 +21537,10 @@ function unwindUnitOfWork(unitOfWork) {
2153921537
returnFiber.flags |= Incomplete;
2154021538
returnFiber.subtreeFlags = NoFlags$1;
2154121539
returnFiber.deletions = null;
21542-
}
21540+
} // NOTE: If we re-enable sibling prerendering in some cases, here we
21541+
// would switch to the normal completion path: check if a sibling
21542+
// exists, and if so, begin work on it.
21543+
// Otherwise, return to the parent
2154321544
// $FlowFixMe[incompatible-type] we bail out when we get a null
2154421545

2154521546
incompleteWork = returnFiber; // Update the next thing we're working on in case something throws.
@@ -23726,7 +23727,7 @@ function createFiberRoot(
2372623727
return root;
2372723728
}
2372823729

23729-
var ReactVersion = "18.3.0-next-8256781fd-20230412";
23730+
var ReactVersion = "18.3.0-next-7b0642bb9-20230412";
2373023731

2373123732
// Might add PROFILE later.
2373223733

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
@@ -8587,7 +8587,7 @@ var devToolsConfig$jscomp$inline_1021 = {
85878587
throw Error("TestRenderer does not support findFiberByHostInstance()");
85888588
},
85898589
bundleType: 0,
8590-
version: "18.3.0-next-8256781fd-20230412",
8590+
version: "18.3.0-next-7b0642bb9-20230412",
85918591
rendererPackageName: "react-test-renderer"
85928592
};
85938593
var internals$jscomp$inline_1204 = {
@@ -8618,7 +8618,7 @@ var internals$jscomp$inline_1204 = {
86188618
scheduleRoot: null,
86198619
setRefreshHandler: null,
86208620
getCurrentFiber: null,
8621-
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
8621+
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
86228622
};
86238623
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
86248624
var hook$jscomp$inline_1205 = __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
@@ -9013,7 +9013,7 @@ var devToolsConfig$jscomp$inline_1063 = {
90139013
throw Error("TestRenderer does not support findFiberByHostInstance()");
90149014
},
90159015
bundleType: 0,
9016-
version: "18.3.0-next-8256781fd-20230412",
9016+
version: "18.3.0-next-7b0642bb9-20230412",
90179017
rendererPackageName: "react-test-renderer"
90189018
};
90199019
var internals$jscomp$inline_1245 = {
@@ -9044,7 +9044,7 @@ var internals$jscomp$inline_1245 = {
90449044
scheduleRoot: null,
90459045
setRefreshHandler: null,
90469046
getCurrentFiber: null,
9047-
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
9047+
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
90489048
};
90499049
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
90509050
var hook$jscomp$inline_1246 = __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-next-8256781fd-20230412";
30+
var ReactVersion = "18.3.0-next-7b0642bb9-20230412";
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
@@ -639,4 +639,4 @@ exports.useSyncExternalStore = function (
639639
);
640640
};
641641
exports.useTransition = useTransition;
642-
exports.version = "18.3.0-next-8256781fd-20230412";
642+
exports.version = "18.3.0-next-7b0642bb9-20230412";

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
@@ -642,7 +642,7 @@ exports.useSyncExternalStore = function (
642642
);
643643
};
644644
exports.useTransition = useTransition;
645-
exports.version = "18.3.0-next-8256781fd-20230412";
645+
exports.version = "18.3.0-next-7b0642bb9-20230412";
646646

647647
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
648648
if (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8256781fdf3ae1947a7f27ddc78ae11b9989c2cd
1+
7b0642bb989ec659c6c9891ea16daa0420caab4d

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24601,15 +24601,13 @@ function completeUnitOfWork(unitOfWork) {
2460124601

2460224602
do {
2460324603
{
24604-
{
24605-
if ((completedWork.flags & Incomplete) !== NoFlags$1) {
24606-
// NOTE: If we re-enable sibling prerendering in some cases, this branch
24607-
// is where we would switch to the unwinding path.
24608-
error(
24609-
"Internal React error: Expected this fiber to be complete, but " +
24610-
"it isn't. It should have been unwound. This is a bug in React."
24611-
);
24612-
}
24604+
if ((completedWork.flags & Incomplete) !== NoFlags$1) {
24605+
// NOTE: If we re-enable sibling prerendering in some cases, this branch
24606+
// is where we would switch to the unwinding path.
24607+
error(
24608+
"Internal React error: Expected this fiber to be complete, but " +
24609+
"it isn't. It should have been unwound. This is a bug in React."
24610+
);
2461324611
}
2461424612
} // The current, flushed, state of this fiber is the alternate. Ideally
2461524613
// nothing should rely on this, but relying on it here means that we don't
@@ -24708,7 +24706,10 @@ function unwindUnitOfWork(unitOfWork) {
2470824706
returnFiber.flags |= Incomplete;
2470924707
returnFiber.subtreeFlags = NoFlags$1;
2471024708
returnFiber.deletions = null;
24711-
}
24709+
} // NOTE: If we re-enable sibling prerendering in some cases, here we
24710+
// would switch to the normal completion path: check if a sibling
24711+
// exists, and if so, begin work on it.
24712+
// Otherwise, return to the parent
2471224713
// $FlowFixMe[incompatible-type] we bail out when we get a null
2471324714

2471424715
incompleteWork = returnFiber; // Update the next thing we're working on in case something throws.
@@ -27033,7 +27034,7 @@ function createFiberRoot(
2703327034
return root;
2703427035
}
2703527036

27036-
var ReactVersion = "18.3.0-next-8256781fd-20230412";
27037+
var ReactVersion = "18.3.0-next-7b0642bb9-20230412";
2703727038

2703827039
function createPortal$1(
2703927040
children,

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9456,7 +9456,7 @@ var roots = new Map(),
94569456
devToolsConfig$jscomp$inline_1045 = {
94579457
findFiberByHostInstance: getInstanceFromNode,
94589458
bundleType: 0,
9459-
version: "18.3.0-next-8256781fd-20230412",
9459+
version: "18.3.0-next-7b0642bb9-20230412",
94609460
rendererPackageName: "react-native-renderer",
94619461
rendererConfig: {
94629462
getInspectorDataForViewTag: function () {
@@ -9498,7 +9498,7 @@ var internals$jscomp$inline_1274 = {
94989498
scheduleRoot: null,
94999499
setRefreshHandler: null,
95009500
getCurrentFiber: null,
9501-
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
9501+
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
95029502
};
95039503
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
95049504
var hook$jscomp$inline_1275 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10165,7 +10165,7 @@ var roots = new Map(),
1016510165
devToolsConfig$jscomp$inline_1123 = {
1016610166
findFiberByHostInstance: getInstanceFromNode,
1016710167
bundleType: 0,
10168-
version: "18.3.0-next-8256781fd-20230412",
10168+
version: "18.3.0-next-7b0642bb9-20230412",
1016910169
rendererPackageName: "react-native-renderer",
1017010170
rendererConfig: {
1017110171
getInspectorDataForViewTag: function () {
@@ -10220,7 +10220,7 @@ var roots = new Map(),
1022010220
scheduleRoot: null,
1022110221
setRefreshHandler: null,
1022210222
getCurrentFiber: null,
10223-
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
10223+
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
1022410224
});
1022510225
exports.createPortal = function (children, containerTag) {
1022610226
return createPortal$1(

0 commit comments

Comments
 (0)