Skip to content

Commit

Permalink
remove unstable_renderSubtreeIntoContainer (#29771)
Browse files Browse the repository at this point in the history
remove unstable_renderSubtreeIntoContainer

This is finally no longer used and can be deleted.

DiffTrain build for commit 93826c8.
  • Loading branch information
kassens committed Jun 12, 2024
1 parent d7dee0d commit da35a56
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 65 deletions.
2 changes: 1 addition & 1 deletion compiled-rn/VERSION_NATIVE_FB
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.0.0-native-fb-383b2a1845-20240611
19.0.0-native-fb-93826c8483-20240612
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0f8fb935cba4739044ec815f4845fc5b>>
* @generated SignedSource<<b8eb53928e81627fde667c042f84c9ee>>
*/

"use strict";
Expand Down Expand Up @@ -14567,14 +14567,6 @@ __DEV__ &&
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.defineProperty(fakeInternalInstance, "_processChildContext", {
enumerable: !1,
value: function () {
throw Error(
"_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)."
);
}
});
Object.freeze(fakeInternalInstance);
var classComponentUpdater = {
isMounted: function (component) {
Expand Down Expand Up @@ -15061,14 +15053,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b48de44f4eaba13ec8cc95fe5226199c>>
* @generated SignedSource<<7c4fbf8dad7a6398072a32a9ff3cdeb4>>
*/

"use strict";
Expand Down Expand Up @@ -9357,7 +9357,7 @@ var devToolsConfig$jscomp$inline_1063 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1250 = {
Expand Down Expand Up @@ -9388,7 +9388,7 @@ var internals$jscomp$inline_1250 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1251 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<fa5430c83fb9661b7fb24558b752f1df>>
* @generated SignedSource<<ecdfa4749709d707aa76297f3fa3a213>>
*/

"use strict";
Expand Down Expand Up @@ -9979,7 +9979,7 @@ var devToolsConfig$jscomp$inline_1146 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-test-renderer"
};
(function (internals) {
Expand Down Expand Up @@ -10023,7 +10023,7 @@ var devToolsConfig$jscomp$inline_1146 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
});
exports._Scheduler = Scheduler;
exports.act = act;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c87ee9f7f585d892d625a7f35b0e6cd4>>
* @generated SignedSource<<54e9a9ca6df8e0a5cbc2b3385ec36991>>
*/

"use strict";
Expand Down Expand Up @@ -1741,7 +1741,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-native-fb-383b2a1845-20240611";
exports.version = "19.0.0-native-fb-93826c8483-20240612";
"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
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<53620647c35529a2727762e548f00871>>
* @generated SignedSource<<d40c783eaa0fafe9077a8b9f7609ef7d>>
*/

"use strict";
Expand Down Expand Up @@ -604,4 +604,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-383b2a1845-20240611";
exports.version = "19.0.0-native-fb-93826c8483-20240612";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7004751e069b539c029afbaf6d0baa69>>
* @generated SignedSource<<8fcff1d373de10edfbb58f5cefd4ec26>>
*/

"use strict";
Expand Down Expand Up @@ -608,7 +608,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-383b2a1845-20240611";
exports.version = "19.0.0-native-fb-93826c8483-20240612";
"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 @@
383b2a18456215d2d3ec46f33c0c912e84efa08f
93826c8483ffaf6676c437c25619d82f13444413
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<d385b8ae99781bb4812778017d564ec0>>
* @generated SignedSource<<c5eb663ba843b3f6dfbca3feeeb3aace>>
*/

"use strict";
Expand Down Expand Up @@ -16301,14 +16301,6 @@ __DEV__ &&
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.defineProperty(fakeInternalInstance, "_processChildContext", {
enumerable: !1,
value: function () {
throw Error(
"_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)."
);
}
});
Object.freeze(fakeInternalInstance);
var classComponentUpdater = {
isMounted: function (component) {
Expand Down Expand Up @@ -16693,12 +16685,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
});
})({
findFiberByHostInstance: getInstanceFromNode,
bundleType: 1,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<231304c043fa9fefae4b7463604e3468>>
* @generated SignedSource<<dde166b06e7834de2e393cfe6bfdb888>>
*/

"use strict";
Expand Down Expand Up @@ -10612,7 +10612,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1140 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down Expand Up @@ -10655,7 +10655,7 @@ var internals$jscomp$inline_1366 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1367 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<697acbfaefce60b184f71bb445ac2e43>>
* @generated SignedSource<<819264bb81190a4fe8f78c7152be96a2>>
*/

"use strict";
Expand Down Expand Up @@ -11318,7 +11318,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1221 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down Expand Up @@ -11374,7 +11374,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
});
exports.createPortal = function (children, containerTag) {
return createPortal$1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<80f60674dc989d548621ddbee04edbdd>>
* @generated SignedSource<<7104000f8b539c9c744ca553fded299b>>
*/

"use strict";
Expand Down Expand Up @@ -16534,14 +16534,6 @@ __DEV__ &&
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.defineProperty(fakeInternalInstance, "_processChildContext", {
enumerable: !1,
value: function () {
throw Error(
"_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)."
);
}
});
Object.freeze(fakeInternalInstance);
var classComponentUpdater = {
isMounted: function (component) {
Expand Down Expand Up @@ -16882,11 +16874,11 @@ __DEV__ &&
var emptyObject = {};
Object.freeze(emptyObject);
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-383b2a1845-20240611" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-93826c8483-20240612" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.0.0-native-fb-383b2a1845-20240611\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-93826c8483-20240612\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
Expand Down Expand Up @@ -16934,12 +16926,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
});
})({
findFiberByHostInstance: getInstanceFromTag,
bundleType: 1,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<1965e5af277f804dd93c89f6f34ddd18>>
* @generated SignedSource<<3e34187290f56885567943b1160d0876>>
*/

"use strict";
Expand Down Expand Up @@ -10755,11 +10755,11 @@ function traverseOwnerTreeUp(hierarchy, instance) {
traverseOwnerTreeUp(hierarchy, instance);
}
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-383b2a1845-20240611" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-93826c8483-20240612" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.0.0-native-fb-383b2a1845-20240611\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-93826c8483-20240612\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
Expand Down Expand Up @@ -10809,7 +10809,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1208 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down Expand Up @@ -10852,7 +10852,7 @@ var internals$jscomp$inline_1455 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1456 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<622731b134c6fd1bfcfcc1fd1473a029>>
* @generated SignedSource<<b11c5ae67b0d04376822705050926b2a>>
*/

"use strict";
Expand Down Expand Up @@ -11462,11 +11462,11 @@ function traverseOwnerTreeUp(hierarchy, instance) {
traverseOwnerTreeUp(hierarchy, instance);
}
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-383b2a1845-20240611" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-93826c8483-20240612" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.0.0-native-fb-383b2a1845-20240611\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-93826c8483-20240612\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
Expand Down Expand Up @@ -11516,7 +11516,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1289 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "19.0.0-native-fb-383b2a1845-20240611",
version: "19.0.0-native-fb-93826c8483-20240612",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down Expand Up @@ -11572,7 +11572,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-383b2a1845-20240611"
reconcilerVersion: "19.0.0-native-fb-93826c8483-20240612"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
computeComponentStackForErrorReporting: function (reactTag) {
Expand Down

0 comments on commit da35a56

Please sign in to comment.