Skip to content

Commit

Permalink
Remove skipUnmountedBoundaries (#26489)
Browse files Browse the repository at this point in the history
# Overview

Landing this flag internally, will test this PR in React Native before
merging.

DiffTrain build for commit ca01f35.
  • Loading branch information
rickhanlonii committed Mar 31, 2023
1 parent 9a244f1 commit 6581486
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22034,11 +22034,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
return;
}

var fiber = null;

{
fiber = sourceFiber.return;
}
var fiber = nearestMountedAncestor;

while (fiber !== null) {
if (fiber.tag === HostRoot) {
Expand Down Expand Up @@ -22071,14 +22067,9 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
}

{
// TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning
// will fire for errors that are thrown by destroy functions inside deleted
// trees. What it should instead do is propagate the error to the parent of
// the deleted tree. In the meantime, do not add this warning to the
// allowlist; this is only for our internal use.
error(
"Internal React error: Attempted to capture a commit phase error " +
"inside a detached tree. This indicates a bug in React. Likely " +
"inside a detached tree. This indicates a bug in React. Potential " +
"causes include deleting the same fiber more than once, committing an " +
"already-finished tree, or an inconsistent return pointer.\n\n" +
"Error message:\n\n%s",
Expand Down Expand Up @@ -23755,7 +23746,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-next-43a70a610-20230330";
var ReactVersion = "18.3.0-next-ca01f359b-20230330";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7409,11 +7409,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
if (3 === sourceFiber.tag)
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
else
for (
nearestMountedAncestor = sourceFiber.return;
null !== nearestMountedAncestor;

) {
for (; null !== nearestMountedAncestor; ) {
if (3 === nearestMountedAncestor.tag) {
captureCommitPhaseErrorOnRoot(
nearestMountedAncestor,
Expand Down Expand Up @@ -8640,7 +8636,7 @@ var devToolsConfig$jscomp$inline_1007 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-next-43a70a610-20230330",
version: "18.3.0-next-ca01f359b-20230330",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1198 = {
Expand Down Expand Up @@ -8671,7 +8667,7 @@ var internals$jscomp$inline_1198 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-43a70a610-20230330"
reconcilerVersion: "18.3.0-next-ca01f359b-20230330"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1199 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7816,11 +7816,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
if (3 === sourceFiber.tag)
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
else
for (
nearestMountedAncestor = sourceFiber.return;
null !== nearestMountedAncestor;

) {
for (; null !== nearestMountedAncestor; ) {
if (3 === nearestMountedAncestor.tag) {
captureCommitPhaseErrorOnRoot(
nearestMountedAncestor,
Expand Down Expand Up @@ -9065,7 +9061,7 @@ var devToolsConfig$jscomp$inline_1050 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-next-43a70a610-20230330",
version: "18.3.0-next-ca01f359b-20230330",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1239 = {
Expand Down Expand Up @@ -9096,7 +9092,7 @@ var internals$jscomp$inline_1239 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-43a70a610-20230330"
reconcilerVersion: "18.3.0-next-ca01f359b-20230330"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1240 = __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-43a70a610-20230330";
var ReactVersion = "18.3.0-next-ca01f359b-20230330";

// 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-43a70a610-20230330";
exports.version = "18.3.0-next-ca01f359b-20230330";
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-43a70a610-20230330";
exports.version = "18.3.0-next-ca01f359b-20230330";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
43a70a610dd2cc298ab5592deebfbf8f7bbac127
ca01f359b9236292c749075bb2fd41bb7b569308
Original file line number Diff line number Diff line change
Expand Up @@ -25152,11 +25152,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
return;
}

var fiber = null;

{
fiber = sourceFiber.return;
}
var fiber = nearestMountedAncestor;

while (fiber !== null) {
if (fiber.tag === HostRoot) {
Expand Down Expand Up @@ -25189,14 +25185,9 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
}

{
// TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning
// will fire for errors that are thrown by destroy functions inside deleted
// trees. What it should instead do is propagate the error to the parent of
// the deleted tree. In the meantime, do not add this warning to the
// allowlist; this is only for our internal use.
error(
"Internal React error: Attempted to capture a commit phase error " +
"inside a detached tree. This indicates a bug in React. Likely " +
"inside a detached tree. This indicates a bug in React. Potential " +
"causes include deleting the same fiber more than once, committing an " +
"already-finished tree, or an inconsistent return pointer.\n\n" +
"Error message:\n\n%s",
Expand Down Expand Up @@ -27021,7 +27012,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-next-43a70a610-20230330";
var ReactVersion = "18.3.0-next-ca01f359b-20230330";

function createPortal$1(
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8473,11 +8473,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
if (3 === sourceFiber.tag)
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
else
for (
nearestMountedAncestor = sourceFiber.return;
null !== nearestMountedAncestor;

) {
for (; null !== nearestMountedAncestor; ) {
if (3 === nearestMountedAncestor.tag) {
captureCommitPhaseErrorOnRoot(
nearestMountedAncestor,
Expand Down Expand Up @@ -9507,7 +9503,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1027 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "18.3.0-next-43a70a610-20230330",
version: "18.3.0-next-ca01f359b-20230330",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function () {
Expand Down Expand Up @@ -9549,7 +9545,7 @@ var internals$jscomp$inline_1273 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-43a70a610-20230330"
reconcilerVersion: "18.3.0-next-ca01f359b-20230330"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1274 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9147,11 +9147,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
if (3 === sourceFiber.tag)
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
else
for (
nearestMountedAncestor = sourceFiber.return;
null !== nearestMountedAncestor;

) {
for (; null !== nearestMountedAncestor; ) {
if (3 === nearestMountedAncestor.tag) {
captureCommitPhaseErrorOnRoot(
nearestMountedAncestor,
Expand Down Expand Up @@ -10215,7 +10211,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1106 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "18.3.0-next-43a70a610-20230330",
version: "18.3.0-next-ca01f359b-20230330",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function () {
Expand Down Expand Up @@ -10270,7 +10266,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-43a70a610-20230330"
reconcilerVersion: "18.3.0-next-ca01f359b-20230330"
});
exports.createPortal = function (children, containerTag) {
return createPortal$1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25692,11 +25692,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
return;
}

var fiber = null;

{
fiber = sourceFiber.return;
}
var fiber = nearestMountedAncestor;

while (fiber !== null) {
if (fiber.tag === HostRoot) {
Expand Down Expand Up @@ -25729,14 +25725,9 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
}

{
// TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning
// will fire for errors that are thrown by destroy functions inside deleted
// trees. What it should instead do is propagate the error to the parent of
// the deleted tree. In the meantime, do not add this warning to the
// allowlist; this is only for our internal use.
error(
"Internal React error: Attempted to capture a commit phase error " +
"inside a detached tree. This indicates a bug in React. Likely " +
"inside a detached tree. This indicates a bug in React. Potential " +
"causes include deleting the same fiber more than once, committing an " +
"already-finished tree, or an inconsistent return pointer.\n\n" +
"Error message:\n\n%s",
Expand Down Expand Up @@ -27561,7 +27552,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-next-43a70a610-20230330";
var ReactVersion = "18.3.0-next-ca01f359b-20230330";

function createPortal$1(
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8722,11 +8722,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
if (3 === sourceFiber.tag)
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
else
for (
nearestMountedAncestor = sourceFiber.return;
null !== nearestMountedAncestor;

) {
for (; null !== nearestMountedAncestor; ) {
if (3 === nearestMountedAncestor.tag) {
captureCommitPhaseErrorOnRoot(
nearestMountedAncestor,
Expand Down Expand Up @@ -9763,7 +9759,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1086 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.3.0-next-43a70a610-20230330",
version: "18.3.0-next-ca01f359b-20230330",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function () {
Expand Down Expand Up @@ -9805,7 +9801,7 @@ var internals$jscomp$inline_1339 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-43a70a610-20230330"
reconcilerVersion: "18.3.0-next-ca01f359b-20230330"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1340 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9396,11 +9396,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
if (3 === sourceFiber.tag)
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
else
for (
nearestMountedAncestor = sourceFiber.return;
null !== nearestMountedAncestor;

) {
for (; null !== nearestMountedAncestor; ) {
if (3 === nearestMountedAncestor.tag) {
captureCommitPhaseErrorOnRoot(
nearestMountedAncestor,
Expand Down Expand Up @@ -10471,7 +10467,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1165 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.3.0-next-43a70a610-20230330",
version: "18.3.0-next-ca01f359b-20230330",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function () {
Expand Down Expand Up @@ -10526,7 +10522,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-43a70a610-20230330"
reconcilerVersion: "18.3.0-next-ca01f359b-20230330"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
computeComponentStackForErrorReporting: function (reactTag) {
Expand Down

0 comments on commit 6581486

Please sign in to comment.