mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Use getComponentNameFromType for debug info for the key warning (#27930)
If this is a client reference we shouldn't dot into it, which would throw in the proxy. Interestingly our client references don't really have a `name` associated with them for debug information so a component type doesn't show up in error logs even though it seems like it should. DiffTrain build for commit https://github.com/facebook/react/commit/0ac3ea471fbcb7d79bc7d36179e960c72c779e76.
This commit is contained in:
+19
-12
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b85e6b4f686f35ddcd77f85e17cfc9f9>>
|
||||
* @generated SignedSource<<fc408c74cd117076cbc05c2d9747b81d>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -238,7 +238,9 @@ if (__DEV__) {
|
||||
|
||||
function getContextName$1(type) {
|
||||
return type.displayName || "Context";
|
||||
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
}
|
||||
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
|
||||
function getComponentNameFromType(type) {
|
||||
if (type == null) {
|
||||
@@ -246,16 +248,12 @@ if (__DEV__) {
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof type === "function") {
|
||||
if (type.$$typeof === REACT_CLIENT_REFERENCE) {
|
||||
// TODO: Create a convention for naming client references with debug info.
|
||||
return null;
|
||||
}
|
||||
|
||||
return type.displayName || type.name || null;
|
||||
}
|
||||
|
||||
@@ -288,6 +286,15 @@ if (__DEV__) {
|
||||
}
|
||||
|
||||
if (typeof type === "object") {
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
switch (type.$$typeof) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
var context = type;
|
||||
@@ -25524,7 +25531,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-canary-6639ed3b3-20240111";
|
||||
var ReactVersion = "18.3.0-canary-0ac3ea471-20240111";
|
||||
|
||||
// Might add PROFILE later.
|
||||
|
||||
|
||||
+8
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<98d1b8b04c6fa3a6d1a3f5d4d992bfdb>>
|
||||
* @generated SignedSource<<09dbf4f778ca917e96108791bdd4cd8e>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -59,9 +59,13 @@ function getIteratorFn(maybeIterable) {
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type) return type.displayName || type.name || null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
@@ -9117,7 +9121,7 @@ var devToolsConfig$jscomp$inline_1037 = {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-6639ed3b3-20240111",
|
||||
version: "18.3.0-canary-0ac3ea471-20240111",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1230 = {
|
||||
@@ -9148,7 +9152,7 @@ var internals$jscomp$inline_1230 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-6639ed3b3-20240111"
|
||||
reconcilerVersion: "18.3.0-canary-0ac3ea471-20240111"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+8
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<c3bf0acffb0597ee7ab235b17135524e>>
|
||||
* @generated SignedSource<<7b9b447b7ed58bc7f344d3fd301db92f>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -59,9 +59,13 @@ function getIteratorFn(maybeIterable) {
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type) return type.displayName || type.name || null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
@@ -9545,7 +9549,7 @@ var devToolsConfig$jscomp$inline_1079 = {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-6639ed3b3-20240111",
|
||||
version: "18.3.0-canary-0ac3ea471-20240111",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1271 = {
|
||||
@@ -9576,7 +9580,7 @@ var internals$jscomp$inline_1271 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-6639ed3b3-20240111"
|
||||
reconcilerVersion: "18.3.0-canary-0ac3ea471-20240111"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1272 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+21
-17
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<8170be8fec46751a1d737fb773d9ff2c>>
|
||||
* @generated SignedSource<<3b95e8aa7ce2e31fd615f920b4402e91>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -106,7 +106,7 @@ if (__DEV__) {
|
||||
var enableScopeAPI = false;
|
||||
var enableTransitionTracing = false;
|
||||
|
||||
var REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference");
|
||||
var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference");
|
||||
function isValidElementType(type) {
|
||||
if (typeof type === "string" || typeof type === "function") {
|
||||
return true;
|
||||
@@ -138,7 +138,7 @@ if (__DEV__) {
|
||||
// types supported by any Flight configuration anywhere since
|
||||
// we don't know which Flight build this will end up being used
|
||||
// with.
|
||||
type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
|
||||
type.$$typeof === REACT_CLIENT_REFERENCE$2 ||
|
||||
type.getModuleId !== undefined
|
||||
) {
|
||||
return true;
|
||||
@@ -163,7 +163,9 @@ if (__DEV__) {
|
||||
|
||||
function getContextName(type) {
|
||||
return type.displayName || "Context";
|
||||
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
}
|
||||
|
||||
var REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"); // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
|
||||
function getComponentNameFromType(type) {
|
||||
if (type == null) {
|
||||
@@ -171,16 +173,12 @@ if (__DEV__) {
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof type === "function") {
|
||||
if (type.$$typeof === REACT_CLIENT_REFERENCE$1) {
|
||||
// TODO: Create a convention for naming client references with debug info.
|
||||
return null;
|
||||
}
|
||||
|
||||
return type.displayName || type.name || null;
|
||||
}
|
||||
|
||||
@@ -209,6 +207,15 @@ if (__DEV__) {
|
||||
}
|
||||
|
||||
if (typeof type === "object") {
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
switch (type.$$typeof) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
var context = type;
|
||||
@@ -917,10 +924,7 @@ if (__DEV__) {
|
||||
var info = getDeclarationErrorAddendum();
|
||||
|
||||
if (!info) {
|
||||
var parentName =
|
||||
typeof parentType === "string"
|
||||
? parentType
|
||||
: parentType.displayName || parentType.name;
|
||||
var parentName = getComponentNameFromType(parentType);
|
||||
|
||||
if (parentName) {
|
||||
info =
|
||||
|
||||
+21
-17
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<147cb9c49da614e98a9929adc67f6800>>
|
||||
* @generated SignedSource<<8fbe3bc0848b0909865f9804f5adcef7>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -106,7 +106,7 @@ if (__DEV__) {
|
||||
var enableScopeAPI = false;
|
||||
var enableTransitionTracing = false;
|
||||
|
||||
var REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference");
|
||||
var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference");
|
||||
function isValidElementType(type) {
|
||||
if (typeof type === "string" || typeof type === "function") {
|
||||
return true;
|
||||
@@ -138,7 +138,7 @@ if (__DEV__) {
|
||||
// types supported by any Flight configuration anywhere since
|
||||
// we don't know which Flight build this will end up being used
|
||||
// with.
|
||||
type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
|
||||
type.$$typeof === REACT_CLIENT_REFERENCE$2 ||
|
||||
type.getModuleId !== undefined
|
||||
) {
|
||||
return true;
|
||||
@@ -163,7 +163,9 @@ if (__DEV__) {
|
||||
|
||||
function getContextName(type) {
|
||||
return type.displayName || "Context";
|
||||
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
}
|
||||
|
||||
var REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"); // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
|
||||
function getComponentNameFromType(type) {
|
||||
if (type == null) {
|
||||
@@ -171,16 +173,12 @@ if (__DEV__) {
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof type === "function") {
|
||||
if (type.$$typeof === REACT_CLIENT_REFERENCE$1) {
|
||||
// TODO: Create a convention for naming client references with debug info.
|
||||
return null;
|
||||
}
|
||||
|
||||
return type.displayName || type.name || null;
|
||||
}
|
||||
|
||||
@@ -209,6 +207,15 @@ if (__DEV__) {
|
||||
}
|
||||
|
||||
if (typeof type === "object") {
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
switch (type.$$typeof) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
var context = type;
|
||||
@@ -917,10 +924,7 @@ if (__DEV__) {
|
||||
var info = getDeclarationErrorAddendum();
|
||||
|
||||
if (!info) {
|
||||
var parentName =
|
||||
typeof parentType === "string"
|
||||
? parentType
|
||||
: parentType.displayName || parentType.name;
|
||||
var parentName = getComponentNameFromType(parentType);
|
||||
|
||||
if (parentName) {
|
||||
info =
|
||||
|
||||
+21
-20
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<30dfd0a48c1491cc7311d26c4bb6319c>>
|
||||
* @generated SignedSource<<10e5144158c797ac98aa209565dacfa5>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -24,7 +24,7 @@ if (__DEV__) {
|
||||
) {
|
||||
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
||||
}
|
||||
var ReactVersion = "18.3.0-canary-6639ed3b3-20240111";
|
||||
var ReactVersion = "18.3.0-canary-0ac3ea471-20240111";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
@@ -585,7 +585,9 @@ if (__DEV__) {
|
||||
|
||||
function getContextName(type) {
|
||||
return type.displayName || "Context";
|
||||
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
}
|
||||
|
||||
var REACT_CLIENT_REFERENCE$3 = Symbol.for("react.client.reference"); // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
|
||||
function getComponentNameFromType(type) {
|
||||
if (type == null) {
|
||||
@@ -593,16 +595,12 @@ if (__DEV__) {
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof type === "function") {
|
||||
if (type.$$typeof === REACT_CLIENT_REFERENCE$3) {
|
||||
// TODO: Create a convention for naming client references with debug info.
|
||||
return null;
|
||||
}
|
||||
|
||||
return type.displayName || type.name || null;
|
||||
}
|
||||
|
||||
@@ -631,6 +629,15 @@ if (__DEV__) {
|
||||
}
|
||||
|
||||
if (typeof type === "object") {
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
switch (type.$$typeof) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
var context = type;
|
||||
@@ -2378,10 +2385,7 @@ if (__DEV__) {
|
||||
var info = getDeclarationErrorAddendum$1();
|
||||
|
||||
if (!info) {
|
||||
var parentName =
|
||||
typeof parentType === "string"
|
||||
? parentType
|
||||
: parentType.displayName || parentType.name;
|
||||
var parentName = getComponentNameFromType(parentType);
|
||||
|
||||
if (parentName) {
|
||||
info =
|
||||
@@ -3471,10 +3475,7 @@ if (__DEV__) {
|
||||
var info = getDeclarationErrorAddendum();
|
||||
|
||||
if (!info) {
|
||||
var parentName =
|
||||
typeof parentType === "string"
|
||||
? parentType
|
||||
: parentType.displayName || parentType.name;
|
||||
var parentName = getComponentNameFromType(parentType);
|
||||
|
||||
if (parentName) {
|
||||
info =
|
||||
|
||||
+1
-1
@@ -580,4 +580,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-canary-6639ed3b3-20240111";
|
||||
exports.version = "18.3.0-canary-0ac3ea471-20240111";
|
||||
|
||||
+1
-1
@@ -576,7 +576,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-canary-6639ed3b3-20240111";
|
||||
exports.version = "18.3.0-canary-0ac3ea471-20240111";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
6639ed3b3a44f7736beb629144a7996145008f09
|
||||
0ac3ea471fbcb7d79bc7d36179e960c72c779e76
|
||||
|
||||
+19
-12
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<54456b8469c88ba73c0c7167b4b27e53>>
|
||||
* @generated SignedSource<<8093e023e848964848b2e08a5762599f>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -5400,7 +5400,9 @@ to return true:wantsResponderID| |
|
||||
|
||||
function getContextName$1(type) {
|
||||
return type.displayName || "Context";
|
||||
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
}
|
||||
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
|
||||
function getComponentNameFromType(type) {
|
||||
if (type == null) {
|
||||
@@ -5408,16 +5410,12 @@ to return true:wantsResponderID| |
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof type === "function") {
|
||||
if (type.$$typeof === REACT_CLIENT_REFERENCE) {
|
||||
// TODO: Create a convention for naming client references with debug info.
|
||||
return null;
|
||||
}
|
||||
|
||||
return type.displayName || type.name || null;
|
||||
}
|
||||
|
||||
@@ -5446,6 +5444,15 @@ to return true:wantsResponderID| |
|
||||
}
|
||||
|
||||
if (typeof type === "object") {
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
switch (type.$$typeof) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
var context = type;
|
||||
@@ -27822,7 +27829,7 @@ to return true:wantsResponderID| |
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-canary-2e719699";
|
||||
var ReactVersion = "18.3.0-canary-247f0e0d";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
|
||||
+8
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<3289c8227f4717794604563a23058a66>>
|
||||
* @generated SignedSource<<f143c1c3879cd2bea8f0434af516bbbf>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1695,9 +1695,13 @@ function getIteratorFn(maybeIterable) {
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type) return type.displayName || type.name || null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
@@ -9548,7 +9552,7 @@ var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1053 = {
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-a4a2a709",
|
||||
version: "18.3.0-canary-e5b06734",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -9591,7 +9595,7 @@ var internals$jscomp$inline_1292 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-a4a2a709"
|
||||
reconcilerVersion: "18.3.0-canary-e5b06734"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1293 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+8
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<7675e37d0e91749a042e16dc06ad0c35>>
|
||||
* @generated SignedSource<<2607cd5e41323c146ac09ecbb5682ce5>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1817,9 +1817,13 @@ function getIteratorFn(maybeIterable) {
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type) return type.displayName || type.name || null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
@@ -10250,7 +10254,7 @@ var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1131 = {
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-23b711f1",
|
||||
version: "18.3.0-canary-1b36a89c",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -10306,7 +10310,7 @@ var roots = new Map(),
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-23b711f1"
|
||||
reconcilerVersion: "18.3.0-canary-1b36a89c"
|
||||
});
|
||||
exports.createPortal = function (children, containerTag) {
|
||||
return createPortal$1(
|
||||
|
||||
+19
-12
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<fa0c9f533686c45b2c4dad69e529be7e>>
|
||||
* @generated SignedSource<<1c328ab6e9e5cacb27445a075ae945c2>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -3016,7 +3016,9 @@ to return true:wantsResponderID| |
|
||||
|
||||
function getContextName$1(type) {
|
||||
return type.displayName || "Context";
|
||||
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
}
|
||||
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
||||
|
||||
function getComponentNameFromType(type) {
|
||||
if (type == null) {
|
||||
@@ -3024,16 +3026,12 @@ to return true:wantsResponderID| |
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof type === "function") {
|
||||
if (type.$$typeof === REACT_CLIENT_REFERENCE) {
|
||||
// TODO: Create a convention for naming client references with debug info.
|
||||
return null;
|
||||
}
|
||||
|
||||
return type.displayName || type.name || null;
|
||||
}
|
||||
|
||||
@@ -3062,6 +3060,15 @@ to return true:wantsResponderID| |
|
||||
}
|
||||
|
||||
if (typeof type === "object") {
|
||||
{
|
||||
if (typeof type.tag === "number") {
|
||||
error(
|
||||
"Received an unexpected object in getComponentNameFromType(). " +
|
||||
"This is likely a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
switch (type.$$typeof) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
var context = type;
|
||||
@@ -28263,7 +28270,7 @@ to return true:wantsResponderID| |
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-canary-c6b3241d";
|
||||
var ReactVersion = "18.3.0-canary-5c402d39";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
|
||||
+8
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<eb46dfdca6a5232030d71c8cf66caeea>>
|
||||
* @generated SignedSource<<78e8bb7a2adc886af3ab9b693ce4f7cd>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1192,9 +1192,13 @@ function getIteratorFn(maybeIterable) {
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type) return type.displayName || type.name || null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
@@ -9770,7 +9774,7 @@ var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1116 = {
|
||||
findFiberByHostInstance: getInstanceFromTag,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-4b3a881d",
|
||||
version: "18.3.0-canary-70aaf409",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -9813,7 +9817,7 @@ var internals$jscomp$inline_1369 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-4b3a881d"
|
||||
reconcilerVersion: "18.3.0-canary-70aaf409"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1370 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
+8
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d8d5c9abf0e6899876388e15f62fa764>>
|
||||
* @generated SignedSource<<52366b4580e0960513a2a83f552181c8>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1196,9 +1196,13 @@ function getIteratorFn(maybeIterable) {
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type) return type.displayName || type.name || null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
@@ -10472,7 +10476,7 @@ var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1194 = {
|
||||
findFiberByHostInstance: getInstanceFromTag,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-canary-2e447814",
|
||||
version: "18.3.0-canary-0210e876",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -10528,7 +10532,7 @@ var roots = new Map(),
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-canary-2e447814"
|
||||
reconcilerVersion: "18.3.0-canary-0210e876"
|
||||
});
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
||||
computeComponentStackForErrorReporting: function (reactTag) {
|
||||
|
||||
Reference in New Issue
Block a user