You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
19
19
// Current owner and dispatcher used to share the same ref,
@@ -25072,6 +25072,7 @@
25072
25072
25073
25073
unbatchedUpdates(function () {
25074
25074
legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
25075
+
// $FlowFixMe This should probably use `delete container._reactRootContainer`
25075
25076
container._reactRootContainer = null;
25076
25077
unmarkContainerAsRoot(container);
25077
25078
});
@@ -25135,53 +25136,36 @@
25135
25136
throw Error( "Target container is not a DOM element." );
25136
25137
}
25137
25138
} // TODO: pass ReactDOM portal implementation as third argument
25139
+
// $FlowFixMe The Flow type is opaque but there's no way to actually create it.
// Temporary alias since we already shipped React 16 RC with it.
25171
-
// TODO: remove in React 17.
25172
-
ReactDOM.unstable_createPortal = function () {
25173
-
{
25174
-
if (!didWarnAboutUnstableCreatePortal) {
25175
-
didWarnAboutUnstableCreatePortal = true;
25153
+
{
25154
+
if (!didWarnAboutUnstableCreatePortal) {
25155
+
didWarnAboutUnstableCreatePortal = true;
25176
25156
25177
-
warn('The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
25178
-
}
25157
+
warn('The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
25179
25158
}
25159
+
}
25180
25160
25181
-
return createPortal$1.apply(void 0, arguments);
25182
-
};
25161
+
return createPortal$1(children, container, key);
25183
25162
}
25184
25163
25164
+
var Internals = {
25165
+
// Keep in sync with ReactDOMUnstableNativeDependencies.js
25166
+
// ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
0 commit comments