[DevTools] Get source location from structured callsites in prepareStackTrace (#33143)

When we get the source location for "View source for this element" we
should be using the enclosing function of the callsite of the child. So
that we don't just point to some random line within the component.

This is similar to the technique in #33136.

This technique is now really better than the fake throw technique, when
available. So I now favor the owner technique. The only problem it's
only available in DEV and only if it has a child that's owned (and not
filtered).

We could implement this same technique for the error that's thrown in
the fake throwing solution. However, we really shouldn't need that at
all because for client components we should be able to call
`inspect(fn)` at least in Chrome which is even better.

DiffTrain build for [997c7bc930](https://github.com/facebook/react/commit/997c7bc930304142b3af37bcb21599181124aeb4)
This commit is contained in:
sebmarkbage
2025-05-13 09:46:46 -07:00
parent d5a02f564b
commit 282bf23bad
24 changed files with 87 additions and 87 deletions
+1 -1
View File
@@ -1 +1 @@
19.2.0-native-fb-b94603b9-20250513
19.2.0-native-fb-997c7bc9-20250513
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a03b2776c09317f55eeea8c03e9ad9dc>>
* @generated SignedSource<<0eb1c939f2a48a302b150ffd5ba2a699>>
*/
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8b9c9fea83f44400768d2633cd6dc030>>
* @generated SignedSource<<70fc5e6f78933604f9d0f366a0529fac>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8b9c9fea83f44400768d2633cd6dc030>>
* @generated SignedSource<<70fc5e6f78933604f9d0f366a0529fac>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6903eb842ea71baf499073e5570cd2a9>>
* @generated SignedSource<<540483d236be7d3946d88c26277f3c7f>>
*/
/*
@@ -26958,11 +26958,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-b94603b9-20250513" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-997c7bc9-20250513" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-native-fb-b94603b9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-997c7bc9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -26999,10 +26999,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27140,5 +27140,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f043db751b3fd3a9a858aea8308ca41e>>
* @generated SignedSource<<d2ac2c6fc1d7b173066eae37c84b37cb>>
*/
/*
@@ -17049,14 +17049,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2015 = React.version;
if (
"19.2.0-native-fb-b94603b9-20250513" !==
"19.2.0-native-fb-997c7bc9-20250513" !==
isomorphicReactPackageVersion$jscomp$inline_2015
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2015,
"19.2.0-native-fb-b94603b9-20250513"
"19.2.0-native-fb-997c7bc9-20250513"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17078,10 +17078,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2534 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2535 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17179,4 +17179,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4f1ea85eb6b9f26660094383642b71a6>>
* @generated SignedSource<<3fb4670193e95757eac18d243b3931bc>>
*/
/*
@@ -17759,14 +17759,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2118 = React.version;
if (
"19.2.0-native-fb-b94603b9-20250513" !==
"19.2.0-native-fb-997c7bc9-20250513" !==
isomorphicReactPackageVersion$jscomp$inline_2118
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2118,
"19.2.0-native-fb-b94603b9-20250513"
"19.2.0-native-fb-997c7bc9-20250513"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17788,10 +17788,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2125 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513",
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$313 = 0;
@@ -17904,4 +17904,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f8bd7b848858655e9fb6d7aedf906202>>
* @generated SignedSource<<2ba3957c3697a6e30977e46a05e363aa>>
*/
/*
@@ -27014,11 +27014,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-b94603b9-20250513" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-997c7bc9-20250513" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-native-fb-b94603b9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-997c7bc9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27055,10 +27055,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27512,7 +27512,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<332892d2a92a11d9f2528ae3053a96d0>>
* @generated SignedSource<<01a26543d8619d796e9f882a52d84b68>>
*/
/*
@@ -17060,14 +17060,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2016 = React.version;
if (
"19.2.0-native-fb-b94603b9-20250513" !==
"19.2.0-native-fb-997c7bc9-20250513" !==
isomorphicReactPackageVersion$jscomp$inline_2016
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2016,
"19.2.0-native-fb-b94603b9-20250513"
"19.2.0-native-fb-997c7bc9-20250513"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17089,10 +17089,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2537 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2538 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17343,4 +17343,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5714a3ba69d3b4f76f6b6617b7d493bc>>
* @generated SignedSource<<65e0e613df6e44c2e47255548d9ad495>>
*/
/*
@@ -17774,14 +17774,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2119 = React.version;
if (
"19.2.0-native-fb-b94603b9-20250513" !==
"19.2.0-native-fb-997c7bc9-20250513" !==
isomorphicReactPackageVersion$jscomp$inline_2119
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2119,
"19.2.0-native-fb-b94603b9-20250513"
"19.2.0-native-fb-997c7bc9-20250513"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17803,10 +17803,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2126 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513",
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$313 = 0;
@@ -18072,7 +18072,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ebcc010b36b8c10508f578210b9d42ba>>
* @generated SignedSource<<a0144a652033e9547599430c64cf65ab>>
*/
"use strict";
@@ -15657,10 +15657,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15805,5 +15805,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<959454e89964f6420177bee92e42a85a>>
* @generated SignedSource<<d5a6803d8541a0dd51f2f1469861629c>>
*/
"use strict";
@@ -9896,10 +9896,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1446 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1447 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10035,4 +10035,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<deb2d973743636d0c36ccc06f206132a>>
* @generated SignedSource<<499ff3859d629e11e143884579ecd430>>
*/
"use strict";
@@ -10516,10 +10516,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1254 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513",
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$155 = 0;
@@ -10670,4 +10670,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<afa1254c584aa45a540be3977e219564>>
* @generated SignedSource<<4a4b9ee8fe47a59b58fbd92787688bfc>>
*/
"use strict";
@@ -1411,7 +1411,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<baa8cfc906ce8bfa2c68da95579f70fc>>
* @generated SignedSource<<4f693a886bd43d99319431c8c610018b>>
*/
"use strict";
@@ -586,4 +586,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<96bcb175e3849dea8e46f484dda6dcbb>>
* @generated SignedSource<<8ddd7382f4120a477738c8a7270238f4>>
*/
"use strict";
@@ -590,7 +590,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-b94603b9-20250513";
exports.version = "19.2.0-native-fb-997c7bc9-20250513";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
b94603b95504130aec72f61e02d7b66d48f33653
997c7bc930304142b3af37bcb21599181124aeb4
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<daae6df8746ded7a5605c04721e4f7fe>>
* @generated SignedSource<<a5cd458bf2ad2388065e19053df25479>>
*/
"use strict";
@@ -17484,10 +17484,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ee4f5ef797f2b56584da7ac2709124ef>>
* @generated SignedSource<<32406cd5abae1ff93a7242ce4892c3dd>>
*/
"use strict";
@@ -11200,10 +11200,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1255 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1255.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5d48c4ffec6f2bd75b83588ade7bbf02>>
* @generated SignedSource<<ca9a51c71f3fab42cc37735dd796559c>>
*/
"use strict";
@@ -11904,10 +11904,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1356 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1356.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<cb313608d606cc5af6642a456d73c50c>>
* @generated SignedSource<<ba979e752d3a58282118a403426587ae>>
*/
"use strict";
@@ -17607,11 +17607,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-b94603b9-20250513" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-997c7bc9-20250513" !== 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.2.0-native-fb-b94603b9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-997c7bc9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -17637,10 +17637,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6e0bbefec6cb80195999dc7d6425332c>>
* @generated SignedSource<<19343f115fab9ac64a6cc184ee41f06f>>
*/
"use strict";
@@ -11212,11 +11212,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-b94603b9-20250513" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-997c7bc9-20250513" !== 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.2.0-native-fb-b94603b9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-997c7bc9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11266,10 +11266,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1306 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1306.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5f3d15728e4ce34775954b6d78b20d3d>>
* @generated SignedSource<<d82e3dd239a87765f0c2d66d06e0bf47>>
*/
"use strict";
@@ -11914,11 +11914,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-b94603b9-20250513" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-997c7bc9-20250513" !== 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.2.0-native-fb-b94603b9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-997c7bc9-20250513\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11968,10 +11968,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1407 = {
bundleType: 0,
version: "19.2.0-native-fb-b94603b9-20250513",
version: "19.2.0-native-fb-997c7bc9-20250513",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-b94603b9-20250513"
reconcilerVersion: "19.2.0-native-fb-997c7bc9-20250513"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1407.rendererConfig = extraDevToolsConfig);
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0-experimental-b94603b9-20250513",
"version": "0.0.0-experimental-997c7bc9-20250513",
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",