Skip to content

Commit

Permalink
Remove revertRemovalOfSiblingPrerendering killswitch (#26549)
Browse files Browse the repository at this point in the history
removal of sibling prerendering has been rolled out at Meta. We can
delete the flag now.

DiffTrain build for commit 7b0642b.
  • Loading branch information
acdlite committed Apr 13, 2023
1 parent c650bf1 commit 79f5d01
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21432,15 +21432,13 @@ function completeUnitOfWork(unitOfWork) {

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

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

var ReactVersion = "18.3.0-next-8256781fd-20230412";
var ReactVersion = "18.3.0-next-7b0642bb9-20230412";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8587,7 +8587,7 @@ var devToolsConfig$jscomp$inline_1021 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-next-8256781fd-20230412",
version: "18.3.0-next-7b0642bb9-20230412",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1204 = {
Expand Down Expand Up @@ -8618,7 +8618,7 @@ var internals$jscomp$inline_1204 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1205 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9013,7 +9013,7 @@ var devToolsConfig$jscomp$inline_1063 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-next-8256781fd-20230412",
version: "18.3.0-next-7b0642bb9-20230412",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1245 = {
Expand Down Expand Up @@ -9044,7 +9044,7 @@ var internals$jscomp$inline_1245 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1246 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-next-8256781fd-20230412";
var ReactVersion = "18.3.0-next-7b0642bb9-20230412";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,4 +639,4 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-next-8256781fd-20230412";
exports.version = "18.3.0-next-7b0642bb9-20230412";
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-next-8256781fd-20230412";
exports.version = "18.3.0-next-7b0642bb9-20230412";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8256781fdf3ae1947a7f27ddc78ae11b9989c2cd
7b0642bb989ec659c6c9891ea16daa0420caab4d
Original file line number Diff line number Diff line change
Expand Up @@ -24601,15 +24601,13 @@ function completeUnitOfWork(unitOfWork) {

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

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

var ReactVersion = "18.3.0-next-8256781fd-20230412";
var ReactVersion = "18.3.0-next-7b0642bb9-20230412";

function createPortal$1(
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9456,7 +9456,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1045 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "18.3.0-next-8256781fd-20230412",
version: "18.3.0-next-7b0642bb9-20230412",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function () {
Expand Down Expand Up @@ -9498,7 +9498,7 @@ var internals$jscomp$inline_1274 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1275 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10165,7 +10165,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1123 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "18.3.0-next-8256781fd-20230412",
version: "18.3.0-next-7b0642bb9-20230412",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function () {
Expand Down Expand Up @@ -10220,7 +10220,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
});
exports.createPortal = function (children, containerTag) {
return createPortal$1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25114,15 +25114,13 @@ function completeUnitOfWork(unitOfWork) {

do {
{
{
if ((completedWork.flags & Incomplete) !== NoFlags$1) {
// NOTE: If we re-enable sibling prerendering in some cases, this branch
// is where we would switch to the unwinding path.
error(
"Internal React error: Expected this fiber to be complete, but " +
"it isn't. It should have been unwound. This is a bug in React."
);
}
if ((completedWork.flags & Incomplete) !== NoFlags$1) {
// NOTE: If we re-enable sibling prerendering in some cases, this branch
// is where we would switch to the unwinding path.
error(
"Internal React error: Expected this fiber to be complete, but " +
"it isn't. It should have been unwound. This is a bug in React."
);
}
} // The current, flushed, state of this fiber is the alternate. Ideally
// nothing should rely on this, but relying on it here means that we don't
Expand Down Expand Up @@ -25221,7 +25219,10 @@ function unwindUnitOfWork(unitOfWork) {
returnFiber.flags |= Incomplete;
returnFiber.subtreeFlags = NoFlags$1;
returnFiber.deletions = null;
}
} // NOTE: If we re-enable sibling prerendering in some cases, here we
// would switch to the normal completion path: check if a sibling
// exists, and if so, begin work on it.
// Otherwise, return to the parent
// $FlowFixMe[incompatible-type] we bail out when we get a null

incompleteWork = returnFiber; // Update the next thing we're working on in case something throws.
Expand Down Expand Up @@ -27546,7 +27547,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-next-8256781fd-20230412";
var ReactVersion = "18.3.0-next-7b0642bb9-20230412";

function createPortal$1(
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9715,7 +9715,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1100 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.3.0-next-8256781fd-20230412",
version: "18.3.0-next-7b0642bb9-20230412",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function () {
Expand Down Expand Up @@ -9757,7 +9757,7 @@ var internals$jscomp$inline_1343 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1344 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10424,7 +10424,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1178 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.3.0-next-8256781fd-20230412",
version: "18.3.0-next-7b0642bb9-20230412",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function () {
Expand Down Expand Up @@ -10479,7 +10479,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-8256781fd-20230412"
reconcilerVersion: "18.3.0-next-7b0642bb9-20230412"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
computeComponentStackForErrorReporting: function (reactTag) {
Expand Down

0 comments on commit 79f5d01

Please sign in to comment.