mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[eslint-plugin-react-hooks] add experimental_autoDependenciesHooks option (#33294)
DiffTrain build for [a3abf5f2f8](https://github.com/facebook/react/commit/a3abf5f2f835ad0c61e2325f5cbac2d1d9045517)
This commit is contained in:
@@ -1 +1 @@
|
||||
19.2.0-native-fb-4448b187-20250515
|
||||
19.2.0-native-fb-a3abf5f2-20250519
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d50ec5f8db1da045f388e6da5a210172>>
|
||||
* @generated SignedSource<<0aa474032c1229862bd4cee57e4c15bc>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -404,5 +404,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
})();
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b72d8582dcdf05a310703a579993d7f2>>
|
||||
* @generated SignedSource<<59268373f059bc8847e9313ebd652d32>>
|
||||
*/
|
||||
|
||||
"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-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b72d8582dcdf05a310703a579993d7f2>>
|
||||
* @generated SignedSource<<59268373f059bc8847e9313ebd652d32>>
|
||||
*/
|
||||
|
||||
"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-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
|
||||
Vendored
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<cee41f07b58e432b5526af6d165da134>>
|
||||
* @generated SignedSource<<d5a5f3bb88cc47ed49d889ee61225bd3>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -27010,11 +27010,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-4448b187-20250515" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-a3abf5f2-20250519" !== 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-4448b187-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-native-fb-a3abf5f2-20250519\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -27051,10 +27051,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -27192,5 +27192,5 @@ __DEV__ &&
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
})();
|
||||
|
||||
compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js
Vendored
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<c4b4950381503933c8f5bc1290c9766a>>
|
||||
* @generated SignedSource<<d0e1fda4bef095a9b7f5cb8a92a1f47d>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17094,14 +17094,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2017 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-4448b187-20250515" !==
|
||||
"19.2.0-native-fb-a3abf5f2-20250519" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2017
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2017,
|
||||
"19.2.0-native-fb-4448b187-20250515"
|
||||
"19.2.0-native-fb-a3abf5f2-20250519"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17123,10 +17123,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2536 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2537 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17224,4 +17224,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<e79c26454fdf06677c9beb980cea3df6>>
|
||||
* @generated SignedSource<<ff883a2238e20ac2564a221a7f2f5c37>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17804,14 +17804,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2120 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-4448b187-20250515" !==
|
||||
"19.2.0-native-fb-a3abf5f2-20250519" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2120
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2120,
|
||||
"19.2.0-native-fb-4448b187-20250515"
|
||||
"19.2.0-native-fb-a3abf5f2-20250519"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17833,10 +17833,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2127 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515",
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$313 = 0;
|
||||
@@ -17949,4 +17949,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<2e2256f9075e6fe3226939389b3d66b6>>
|
||||
* @generated SignedSource<<3dc8192e3c7882d9621e73e6fe84cf6c>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -27066,11 +27066,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-4448b187-20250515" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-a3abf5f2-20250519" !== 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-4448b187-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-native-fb-a3abf5f2-20250519\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -27107,10 +27107,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -27564,7 +27564,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<7f599c6259a81a7c8ff73b653336962c>>
|
||||
* @generated SignedSource<<b42dc5bbf9e64933d22a591a05be9631>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17105,14 +17105,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2018 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-4448b187-20250515" !==
|
||||
"19.2.0-native-fb-a3abf5f2-20250519" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2018
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2018,
|
||||
"19.2.0-native-fb-4448b187-20250515"
|
||||
"19.2.0-native-fb-a3abf5f2-20250519"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17134,10 +17134,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2539 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2540 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17388,4 +17388,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<539d333f37471421addcdf824f2a534d>>
|
||||
* @generated SignedSource<<0331168def93dd09cb4d863bceb6a862>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17819,14 +17819,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2121 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-4448b187-20250515" !==
|
||||
"19.2.0-native-fb-a3abf5f2-20250519" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2121
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2121,
|
||||
"19.2.0-native-fb-4448b187-20250515"
|
||||
"19.2.0-native-fb-a3abf5f2-20250519"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17848,10 +17848,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2128 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515",
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$313 = 0;
|
||||
@@ -18117,7 +18117,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<72a76f117b56e73abeb555073e5fee60>>
|
||||
* @generated SignedSource<<646c23661817dca3fd04a435df2323a3>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -15658,10 +15658,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15806,5 +15806,5 @@ __DEV__ &&
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
})();
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<2651c352f7949a7885a46c44f0a011cd>>
|
||||
* @generated SignedSource<<91545111ec70342f3abd4767196d900f>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -9895,10 +9895,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1447 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1448 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10034,4 +10034,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<4e40c674968ef30ded4cf69d25dcd372>>
|
||||
* @generated SignedSource<<0bd1f0cad02b18dffe2bb4e286a410bd>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -10515,10 +10515,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1254 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515",
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$155 = 0;
|
||||
@@ -10669,4 +10669,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<4ccce0904c324b3ff1f933da2262042b>>
|
||||
* @generated SignedSource<<b6eea4ac2c4626e327be57212ec57cc0>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1411,7 +1411,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<a1d41df23b8c4e73cb86e2e0f1d5f945>>
|
||||
* @generated SignedSource<<34ff9df73ffd8695992e59881f72ab61>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -586,4 +586,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<39784642662f84acabc739149d363079>>
|
||||
* @generated SignedSource<<4dce48412385774fbf7fbac793bff99a>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -590,7 +590,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-4448b187-20250515";
|
||||
exports.version = "19.2.0-native-fb-a3abf5f2-20250519";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
4448b18760d867f9e009e810571e7a3b8930bb19
|
||||
a3abf5f2f835ad0c61e2325f5cbac2d1d9045517
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<a1e35a940731e988cef992026c072b98>>
|
||||
* @generated SignedSource<<1a045301ccf700181a1c1f38908f2f2b>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -17486,10 +17486,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<cc5ac1dffb8dbfd082cd493df9fc0379>>
|
||||
* @generated SignedSource<<e55aad7ce028bb560e48b6307c703acd>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11202,10 +11202,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1257 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1257.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<17b806f7e6aafb805bae07280406f61a>>
|
||||
* @generated SignedSource<<7ed56cfede68d200fa8cd22f94ec663d>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11906,10 +11906,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1358 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1358.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<185dc367f54f8315719cd263405d8dda>>
|
||||
* @generated SignedSource<<7019bcf27237553a3cc943d94a4949cf>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -17609,11 +17609,11 @@ __DEV__ &&
|
||||
shouldSuspendImpl = newShouldSuspendImpl;
|
||||
};
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-4448b187-20250515" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-a3abf5f2-20250519" !== 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-4448b187-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-a3abf5f2-20250519\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -17639,10 +17639,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<5befbd5337b34e39cf26db24f7c75c65>>
|
||||
* @generated SignedSource<<0fc8c6ef672064f84e32ba16cd2227a1>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11211,11 +11211,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-4448b187-20250515" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-a3abf5f2-20250519" !== 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-4448b187-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-a3abf5f2-20250519\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -11265,10 +11265,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1307 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1307.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<fda6e2352866ff56f1da0e9253bb6cd8>>
|
||||
* @generated SignedSource<<2ad3ca6ea61ca2ef3de93ccfb9bd42d7>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11913,11 +11913,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-4448b187-20250515" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-a3abf5f2-20250519" !== 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-4448b187-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-a3abf5f2-20250519\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -11967,10 +11967,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1408 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-4448b187-20250515",
|
||||
version: "19.2.0-native-fb-a3abf5f2-20250519",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-4448b187-20250515"
|
||||
reconcilerVersion: "19.2.0-native-fb-a3abf5f2-20250519"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1408.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+6
@@ -23,6 +23,12 @@ declare const rules: {
|
||||
enableDangerousAutofixThisMayCauseInfiniteLoops: {
|
||||
type: "boolean";
|
||||
};
|
||||
experimental_autoDependenciesHooks: {
|
||||
type: "array";
|
||||
items: {
|
||||
type: "string";
|
||||
};
|
||||
};
|
||||
};
|
||||
}[];
|
||||
};
|
||||
|
||||
+38
-14
@@ -12,7 +12,7 @@
|
||||
* @lightSyntaxTransform
|
||||
* @preventMunge
|
||||
* @oncall react_core
|
||||
* @generated SignedSource<<88d88f1a5bb0b8e91cf80fd5bed90f86>>
|
||||
* @generated SignedSource<<482a9d0f7a91a38912f9260022eda396>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -51,22 +51,30 @@ const rule$2 = {
|
||||
enableDangerousAutofixThisMayCauseInfiniteLoops: {
|
||||
type: 'boolean',
|
||||
},
|
||||
experimental_autoDependenciesHooks: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
create(context) {
|
||||
const additionalHooks = context.options &&
|
||||
context.options[0] &&
|
||||
context.options[0].additionalHooks
|
||||
? new RegExp(context.options[0].additionalHooks)
|
||||
const rawOptions = context.options && context.options[0];
|
||||
const additionalHooks = rawOptions && rawOptions.additionalHooks
|
||||
? new RegExp(rawOptions.additionalHooks)
|
||||
: undefined;
|
||||
const enableDangerousAutofixThisMayCauseInfiniteLoops = (context.options &&
|
||||
context.options[0] &&
|
||||
context.options[0].enableDangerousAutofixThisMayCauseInfiniteLoops) ||
|
||||
const enableDangerousAutofixThisMayCauseInfiniteLoops = (rawOptions &&
|
||||
rawOptions.enableDangerousAutofixThisMayCauseInfiniteLoops) ||
|
||||
false;
|
||||
const experimental_autoDependenciesHooks = rawOptions && Array.isArray(rawOptions.experimental_autoDependenciesHooks)
|
||||
? rawOptions.experimental_autoDependenciesHooks
|
||||
: [];
|
||||
const options = {
|
||||
additionalHooks,
|
||||
experimental_autoDependenciesHooks,
|
||||
enableDangerousAutofixThisMayCauseInfiniteLoops,
|
||||
};
|
||||
function reportProblem(problem) {
|
||||
@@ -109,7 +117,7 @@ const rule$2 = {
|
||||
return result;
|
||||
};
|
||||
}
|
||||
function visitFunctionWithDependencies(node, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect) {
|
||||
function visitFunctionWithDependencies(node, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect, isAutoDepsHook) {
|
||||
if (isEffect && node.async) {
|
||||
reportProblem({
|
||||
node: node,
|
||||
@@ -435,6 +443,9 @@ const rule$2 = {
|
||||
return;
|
||||
}
|
||||
if (!declaredDependenciesNode) {
|
||||
if (isAutoDepsHook) {
|
||||
return;
|
||||
}
|
||||
let setStateInsideEffectWithoutDeps = null;
|
||||
dependencies.forEach(({ references }, key) => {
|
||||
if (setStateInsideEffectWithoutDeps) {
|
||||
@@ -486,6 +497,11 @@ const rule$2 = {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (isAutoDepsHook &&
|
||||
declaredDependenciesNode.type === 'Literal' &&
|
||||
declaredDependenciesNode.value === null) {
|
||||
return;
|
||||
}
|
||||
const declaredDependencies = [];
|
||||
const externalDependencies = new Set();
|
||||
const isArrayExpression = declaredDependenciesNode.type === 'ArrayExpression';
|
||||
@@ -919,7 +935,12 @@ const rule$2 = {
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!declaredDependenciesNode && !isEffect) {
|
||||
const isAutoDepsHook = options.experimental_autoDependenciesHooks.includes(reactiveHookName);
|
||||
if ((!declaredDependenciesNode ||
|
||||
(isAutoDepsHook &&
|
||||
declaredDependenciesNode.type === 'Literal' &&
|
||||
declaredDependenciesNode.value === null)) &&
|
||||
!isEffect) {
|
||||
if (reactiveHookName === 'useMemo' ||
|
||||
reactiveHookName === 'useCallback') {
|
||||
reportProblem({
|
||||
@@ -938,10 +959,13 @@ const rule$2 = {
|
||||
switch (callback.type) {
|
||||
case 'FunctionExpression':
|
||||
case 'ArrowFunctionExpression':
|
||||
visitFunctionWithDependencies(callback, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect);
|
||||
visitFunctionWithDependencies(callback, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect, isAutoDepsHook);
|
||||
return;
|
||||
case 'Identifier':
|
||||
if (!declaredDependenciesNode) {
|
||||
if (!declaredDependenciesNode ||
|
||||
(isAutoDepsHook &&
|
||||
declaredDependenciesNode.type === 'Literal' &&
|
||||
declaredDependenciesNode.value === null)) {
|
||||
return;
|
||||
}
|
||||
if ('elements' in declaredDependenciesNode &&
|
||||
@@ -969,7 +993,7 @@ const rule$2 = {
|
||||
}
|
||||
switch (def.node.type) {
|
||||
case 'FunctionDeclaration':
|
||||
visitFunctionWithDependencies(def.node, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect);
|
||||
visitFunctionWithDependencies(def.node, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect, isAutoDepsHook);
|
||||
return;
|
||||
case 'VariableDeclarator':
|
||||
const init = def.node.init;
|
||||
@@ -979,7 +1003,7 @@ const rule$2 = {
|
||||
switch (init.type) {
|
||||
case 'ArrowFunctionExpression':
|
||||
case 'FunctionExpression':
|
||||
visitFunctionWithDependencies(init, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect);
|
||||
visitFunctionWithDependencies(init, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect, isAutoDepsHook);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
||||
+38
-14
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* @generated SignedSource<<0e428222f076f4cafdd0abe839eb5949>>
|
||||
* @generated SignedSource<<4c0b264b1118012f42787d5abd5f3247>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -41,22 +41,30 @@ const rule$2 = {
|
||||
enableDangerousAutofixThisMayCauseInfiniteLoops: {
|
||||
type: 'boolean',
|
||||
},
|
||||
experimental_autoDependenciesHooks: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
create(context) {
|
||||
const additionalHooks = context.options &&
|
||||
context.options[0] &&
|
||||
context.options[0].additionalHooks
|
||||
? new RegExp(context.options[0].additionalHooks)
|
||||
const rawOptions = context.options && context.options[0];
|
||||
const additionalHooks = rawOptions && rawOptions.additionalHooks
|
||||
? new RegExp(rawOptions.additionalHooks)
|
||||
: undefined;
|
||||
const enableDangerousAutofixThisMayCauseInfiniteLoops = (context.options &&
|
||||
context.options[0] &&
|
||||
context.options[0].enableDangerousAutofixThisMayCauseInfiniteLoops) ||
|
||||
const enableDangerousAutofixThisMayCauseInfiniteLoops = (rawOptions &&
|
||||
rawOptions.enableDangerousAutofixThisMayCauseInfiniteLoops) ||
|
||||
false;
|
||||
const experimental_autoDependenciesHooks = rawOptions && Array.isArray(rawOptions.experimental_autoDependenciesHooks)
|
||||
? rawOptions.experimental_autoDependenciesHooks
|
||||
: [];
|
||||
const options = {
|
||||
additionalHooks,
|
||||
experimental_autoDependenciesHooks,
|
||||
enableDangerousAutofixThisMayCauseInfiniteLoops,
|
||||
};
|
||||
function reportProblem(problem) {
|
||||
@@ -99,7 +107,7 @@ const rule$2 = {
|
||||
return result;
|
||||
};
|
||||
}
|
||||
function visitFunctionWithDependencies(node, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect) {
|
||||
function visitFunctionWithDependencies(node, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect, isAutoDepsHook) {
|
||||
if (isEffect && node.async) {
|
||||
reportProblem({
|
||||
node: node,
|
||||
@@ -425,6 +433,9 @@ const rule$2 = {
|
||||
return;
|
||||
}
|
||||
if (!declaredDependenciesNode) {
|
||||
if (isAutoDepsHook) {
|
||||
return;
|
||||
}
|
||||
let setStateInsideEffectWithoutDeps = null;
|
||||
dependencies.forEach(({ references }, key) => {
|
||||
if (setStateInsideEffectWithoutDeps) {
|
||||
@@ -476,6 +487,11 @@ const rule$2 = {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (isAutoDepsHook &&
|
||||
declaredDependenciesNode.type === 'Literal' &&
|
||||
declaredDependenciesNode.value === null) {
|
||||
return;
|
||||
}
|
||||
const declaredDependencies = [];
|
||||
const externalDependencies = new Set();
|
||||
const isArrayExpression = declaredDependenciesNode.type === 'ArrayExpression';
|
||||
@@ -909,7 +925,12 @@ const rule$2 = {
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!declaredDependenciesNode && !isEffect) {
|
||||
const isAutoDepsHook = options.experimental_autoDependenciesHooks.includes(reactiveHookName);
|
||||
if ((!declaredDependenciesNode ||
|
||||
(isAutoDepsHook &&
|
||||
declaredDependenciesNode.type === 'Literal' &&
|
||||
declaredDependenciesNode.value === null)) &&
|
||||
!isEffect) {
|
||||
if (reactiveHookName === 'useMemo' ||
|
||||
reactiveHookName === 'useCallback') {
|
||||
reportProblem({
|
||||
@@ -928,10 +949,13 @@ const rule$2 = {
|
||||
switch (callback.type) {
|
||||
case 'FunctionExpression':
|
||||
case 'ArrowFunctionExpression':
|
||||
visitFunctionWithDependencies(callback, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect);
|
||||
visitFunctionWithDependencies(callback, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect, isAutoDepsHook);
|
||||
return;
|
||||
case 'Identifier':
|
||||
if (!declaredDependenciesNode) {
|
||||
if (!declaredDependenciesNode ||
|
||||
(isAutoDepsHook &&
|
||||
declaredDependenciesNode.type === 'Literal' &&
|
||||
declaredDependenciesNode.value === null)) {
|
||||
return;
|
||||
}
|
||||
if ('elements' in declaredDependenciesNode &&
|
||||
@@ -959,7 +983,7 @@ const rule$2 = {
|
||||
}
|
||||
switch (def.node.type) {
|
||||
case 'FunctionDeclaration':
|
||||
visitFunctionWithDependencies(def.node, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect);
|
||||
visitFunctionWithDependencies(def.node, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect, isAutoDepsHook);
|
||||
return;
|
||||
case 'VariableDeclarator':
|
||||
const init = def.node.init;
|
||||
@@ -969,7 +993,7 @@ const rule$2 = {
|
||||
switch (init.type) {
|
||||
case 'ArrowFunctionExpression':
|
||||
case 'FunctionExpression':
|
||||
visitFunctionWithDependencies(init, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect);
|
||||
visitFunctionWithDependencies(init, declaredDependenciesNode, reactiveHook, reactiveHookName, isEffect, isAutoDepsHook);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "eslint-plugin-react-hooks",
|
||||
"description": "ESLint rules for React Hooks",
|
||||
"version": "0.0.0-experimental-4448b187-20250515",
|
||||
"version": "0.0.0-experimental-a3abf5f2-20250519",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/react.git",
|
||||
|
||||
Reference in New Issue
Block a user