mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[compiler] Script to produce markdown of lint rule docs (#34260)
The docs site is in a separate repo, but this gives us a semi-automated
way to update the docs about our lint rules. The script generates
markdown files from the rule definitions which we can then manually
copy/paste into the docs site somewhere. In the future we can automate
this fully.
DiffTrain build for [425ba0ad6d](https://github.com/facebook/react/commit/425ba0ad6d3ebd1779f6a658dcbf5c666d054948)
This commit is contained in:
@@ -1 +1 @@
|
||||
19.2.0-native-fb-698bb4de-20250822
|
||||
19.2.0-native-fb-425ba0ad-20250822
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d6cdaf4ed512d4e6bc53ad93401bc4ff>>
|
||||
* @generated SignedSource<<1958ebaac0d3d6fb4cedd53a75c44d46>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -404,5 +404,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
})();
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<9c0d95ca752b26c4930bec5b2c914cf1>>
|
||||
* @generated SignedSource<<7d47151e34737748daaa2f20c2b91bf6>>
|
||||
*/
|
||||
|
||||
"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-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<9c0d95ca752b26c4930bec5b2c914cf1>>
|
||||
* @generated SignedSource<<7d47151e34737748daaa2f20c2b91bf6>>
|
||||
*/
|
||||
|
||||
"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-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
|
||||
Vendored
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<3e311ce086b15799648e9ee812be11ec>>
|
||||
* @generated SignedSource<<59cd6456ff6eae2f85535f7bedf9304c>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -29367,11 +29367,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-698bb4de-20250822" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-425ba0ad-20250822" !== 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-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-native-fb-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -29408,10 +29408,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -29550,5 +29550,5 @@ __DEV__ &&
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
})();
|
||||
|
||||
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<<8bf9a0b344d49c5019120523f07c3195>>
|
||||
* @generated SignedSource<<4f1298c7ec539cc61196ff845012c819>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17190,14 +17190,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-698bb4de-20250822" !==
|
||||
"19.2.0-native-fb-425ba0ad-20250822" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2023
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2023,
|
||||
"19.2.0-native-fb-698bb4de-20250822"
|
||||
"19.2.0-native-fb-425ba0ad-20250822"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17219,10 +17219,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2554 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2555 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17320,4 +17320,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<22051d9a7b9010d873e0440bb7e5ee47>>
|
||||
* @generated SignedSource<<f665a1f87d698f79753bc0fc16969c94>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -19200,14 +19200,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2274 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-698bb4de-20250822" !==
|
||||
"19.2.0-native-fb-425ba0ad-20250822" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2274
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2274,
|
||||
"19.2.0-native-fb-698bb4de-20250822"
|
||||
"19.2.0-native-fb-425ba0ad-20250822"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19229,10 +19229,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2281 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822",
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$321 = 0;
|
||||
@@ -19346,4 +19346,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<7a794eee37e85b9dacfe4a29e4b2e749>>
|
||||
* @generated SignedSource<<f16bda0e61792eb50be23bcc8c98a37d>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -29423,11 +29423,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-698bb4de-20250822" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-425ba0ad-20250822" !== 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-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-native-fb-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -29464,10 +29464,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -29922,7 +29922,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<5270c3cd2fdfcbe161c466dd7321551c>>
|
||||
* @generated SignedSource<<4a4d2b309a9b1b1765c21bc2090abb0d>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17201,14 +17201,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-698bb4de-20250822" !==
|
||||
"19.2.0-native-fb-425ba0ad-20250822" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2024
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2024,
|
||||
"19.2.0-native-fb-698bb4de-20250822"
|
||||
"19.2.0-native-fb-425ba0ad-20250822"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17230,10 +17230,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2557 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2558 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17484,4 +17484,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<e8b371850135fc05424ddbfc1f637c85>>
|
||||
* @generated SignedSource<<501bcca02426f62fafde0366d99942f4>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -19215,14 +19215,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2275 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-698bb4de-20250822" !==
|
||||
"19.2.0-native-fb-425ba0ad-20250822" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2275
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2275,
|
||||
"19.2.0-native-fb-698bb4de-20250822"
|
||||
"19.2.0-native-fb-425ba0ad-20250822"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19244,10 +19244,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2282 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822",
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$321 = 0;
|
||||
@@ -19514,7 +19514,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<16abd3b74c6aff979eddb8e8bdfb4152>>
|
||||
* @generated SignedSource<<12350705432143ba92b5beaa296f585a>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -15758,10 +15758,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15906,5 +15906,5 @@ __DEV__ &&
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
})();
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<cbcbc39584626d4c80895682dd2ee3d5>>
|
||||
* @generated SignedSource<<ba47cf1468f7c2d2d00f109d4da540b2>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -9924,10 +9924,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1428 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1429 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10063,4 +10063,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<cc99ddcdddfd9ee11c4985abd2ee26ca>>
|
||||
* @generated SignedSource<<5dda1e146dc6d01603b463bf50c49561>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -10544,10 +10544,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1236 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822",
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$142 = 0;
|
||||
@@ -10698,4 +10698,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<0822008448c06eb7998cd19a8060485c>>
|
||||
* @generated SignedSource<<e72940333833ccae1fdd3aacb7282696>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1388,7 +1388,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<350cd604ca7a9990b7cada21cdce19dc>>
|
||||
* @generated SignedSource<<5881200c054e991758e8048bfb6e1746>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -579,4 +579,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<17e3b879a67749b8805b83551179ab5d>>
|
||||
* @generated SignedSource<<a0779d3888de8f4dd63e16f3a5579dd6>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -583,7 +583,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-698bb4de-20250822";
|
||||
exports.version = "19.2.0-native-fb-425ba0ad-20250822";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
698bb4deb7c77010c040ac49630c26db94e6e28c
|
||||
425ba0ad6d3ebd1779f6a658dcbf5c666d054948
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<42602dcfe5a1acee4577870cd6959d44>>
|
||||
* @generated SignedSource<<a20962ba6ca7547422134658c4be0796>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -19594,10 +19594,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<201e4ea07ee9842e3755d5ade7db8994>>
|
||||
* @generated SignedSource<<b93755298eb43188c9be9c4b30b61e35>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11108,10 +11108,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1260 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1260.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<45b818db24be6eb22be8fb91d536962c>>
|
||||
* @generated SignedSource<<34bbfd59496614bb99082410fecc2594>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13059,10 +13059,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1504 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1504.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d05e8dfd4649047fb62db1770d95b306>>
|
||||
* @generated SignedSource<<7a6055ed8e813a776b8c8dc990b739b6>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -19878,11 +19878,11 @@ __DEV__ &&
|
||||
shouldSuspendImpl = newShouldSuspendImpl;
|
||||
};
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-698bb4de-20250822" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-425ba0ad-20250822" !== 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-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -19908,10 +19908,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<c6032512ab0d7cfc1218fe5eddda9a11>>
|
||||
* @generated SignedSource<<704988d17d6c236bd29c989bb5334bee>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11254,11 +11254,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-698bb4de-20250822" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-425ba0ad-20250822" !== 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-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -11308,10 +11308,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1290 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1290.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<8775402d14e267beb331de1761cf7a4c>>
|
||||
* @generated SignedSource<<74e1e7fc57f49ae0bbabd069777c75ef>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13194,11 +13194,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-698bb4de-20250822" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-425ba0ad-20250822" !== 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-698bb4de-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-425ba0ad-20250822\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -13248,10 +13248,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1534 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-698bb4de-20250822",
|
||||
version: "19.2.0-native-fb-425ba0ad-20250822",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-698bb4de-20250822"
|
||||
reconcilerVersion: "19.2.0-native-fb-425ba0ad-20250822"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1534.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+24
-15
@@ -12,7 +12,7 @@
|
||||
* @lightSyntaxTransform
|
||||
* @preventMunge
|
||||
* @oncall react_core
|
||||
* @generated SignedSource<<8b9222c9335604755837fb0bf1603ac2>>
|
||||
* @generated SignedSource<<93b115fda66c350f29bd5402cd94e1f9>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -18002,14 +18002,20 @@ var ErrorCategory;
|
||||
ErrorCategory["Fire"] = "Fire";
|
||||
ErrorCategory["FBT"] = "FBT";
|
||||
})(ErrorCategory || (ErrorCategory = {}));
|
||||
const RULE_NAME_PATTERN = /^[a-z]+(-[a-z]+)*$/;
|
||||
function getRuleForCategory(category) {
|
||||
const rule = getRuleForCategoryImpl(category);
|
||||
invariant(RULE_NAME_PATTERN.test(rule.name), `Invalid rule name, got '${rule.name}' but rules must match ${RULE_NAME_PATTERN.toString()}`);
|
||||
return rule;
|
||||
}
|
||||
function getRuleForCategoryImpl(category) {
|
||||
switch (category) {
|
||||
case ErrorCategory.AutomaticEffectDependencies: {
|
||||
return {
|
||||
category,
|
||||
name: 'automatic-effect-dependencies',
|
||||
description: 'Verifies that automatic effect dependencies are compiled if opted-in',
|
||||
recommended: true,
|
||||
recommended: false,
|
||||
};
|
||||
}
|
||||
case ErrorCategory.CapitalizedCalls: {
|
||||
@@ -18024,7 +18030,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'config',
|
||||
description: 'Validates the configuration',
|
||||
description: 'Validates the compiler configuration options',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18048,7 +18054,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'set-state-in-effect',
|
||||
description: 'Validates against calling setState synchronously in an effect',
|
||||
description: 'Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18056,7 +18062,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'error-boundaries',
|
||||
description: 'Validates usage of error boundaries instead of try/catch for errors in JSX',
|
||||
description: 'Validates usage of error boundaries instead of try/catch for errors in child components',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18080,7 +18086,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'gating',
|
||||
description: 'Validates configuration of gating mode',
|
||||
description: 'Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18088,7 +18094,8 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'globals',
|
||||
description: 'Validates against assignment/mutation of globals during render',
|
||||
description: 'Validates against assignment/mutation of globals during render, part of ensuring that ' +
|
||||
'[side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18104,7 +18111,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'immutability',
|
||||
description: 'Validates that immutable values (props, state, etc) are not mutated',
|
||||
description: 'Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18120,7 +18127,9 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'preserve-manual-memoization',
|
||||
description: 'Validates that existing manual memoized is preserved by the compiler',
|
||||
description: 'Validates that existing manual memoized is preserved by the compiler. ' +
|
||||
'React Compiler will only compile components and hooks if its inference ' +
|
||||
'[matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18128,7 +18137,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'purity',
|
||||
description: 'Validates that the component/hook is pure, and does not call known-impure functions',
|
||||
description: 'Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18136,7 +18145,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'refs',
|
||||
description: 'Validates correct usage of refs, not reading/writing during render',
|
||||
description: 'Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18144,7 +18153,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'set-state-in-render',
|
||||
description: 'Validates against setting state during render',
|
||||
description: 'Validates against setting state during render, which can trigger additional renders and potential infinite render loops',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18152,7 +18161,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'static-components',
|
||||
description: 'Validates that components are static, not recreated every render',
|
||||
description: 'Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18184,7 +18193,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'unsupported-syntax',
|
||||
description: 'Validates against syntax that we do not plan to support',
|
||||
description: 'Validates against syntax that we do not plan to support in React Compiler',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18192,7 +18201,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'use-memo',
|
||||
description: 'Validates usage of the useMemo() hook',
|
||||
description: 'Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
|
||||
+24
-15
@@ -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<<f08c4c2827b1856ef12ecb97a6f7a2c5>>
|
||||
* @generated SignedSource<<e889d2875cc3705d804f26c9d2866cf6>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -17987,14 +17987,20 @@ var ErrorCategory;
|
||||
ErrorCategory["Fire"] = "Fire";
|
||||
ErrorCategory["FBT"] = "FBT";
|
||||
})(ErrorCategory || (ErrorCategory = {}));
|
||||
const RULE_NAME_PATTERN = /^[a-z]+(-[a-z]+)*$/;
|
||||
function getRuleForCategory(category) {
|
||||
const rule = getRuleForCategoryImpl(category);
|
||||
invariant(RULE_NAME_PATTERN.test(rule.name), `Invalid rule name, got '${rule.name}' but rules must match ${RULE_NAME_PATTERN.toString()}`);
|
||||
return rule;
|
||||
}
|
||||
function getRuleForCategoryImpl(category) {
|
||||
switch (category) {
|
||||
case ErrorCategory.AutomaticEffectDependencies: {
|
||||
return {
|
||||
category,
|
||||
name: 'automatic-effect-dependencies',
|
||||
description: 'Verifies that automatic effect dependencies are compiled if opted-in',
|
||||
recommended: true,
|
||||
recommended: false,
|
||||
};
|
||||
}
|
||||
case ErrorCategory.CapitalizedCalls: {
|
||||
@@ -18009,7 +18015,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'config',
|
||||
description: 'Validates the configuration',
|
||||
description: 'Validates the compiler configuration options',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18033,7 +18039,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'set-state-in-effect',
|
||||
description: 'Validates against calling setState synchronously in an effect',
|
||||
description: 'Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18041,7 +18047,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'error-boundaries',
|
||||
description: 'Validates usage of error boundaries instead of try/catch for errors in JSX',
|
||||
description: 'Validates usage of error boundaries instead of try/catch for errors in child components',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18065,7 +18071,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'gating',
|
||||
description: 'Validates configuration of gating mode',
|
||||
description: 'Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18073,7 +18079,8 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'globals',
|
||||
description: 'Validates against assignment/mutation of globals during render',
|
||||
description: 'Validates against assignment/mutation of globals during render, part of ensuring that ' +
|
||||
'[side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18089,7 +18096,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'immutability',
|
||||
description: 'Validates that immutable values (props, state, etc) are not mutated',
|
||||
description: 'Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18105,7 +18112,9 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'preserve-manual-memoization',
|
||||
description: 'Validates that existing manual memoized is preserved by the compiler',
|
||||
description: 'Validates that existing manual memoized is preserved by the compiler. ' +
|
||||
'React Compiler will only compile components and hooks if its inference ' +
|
||||
'[matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18113,7 +18122,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'purity',
|
||||
description: 'Validates that the component/hook is pure, and does not call known-impure functions',
|
||||
description: 'Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18121,7 +18130,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'refs',
|
||||
description: 'Validates correct usage of refs, not reading/writing during render',
|
||||
description: 'Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18129,7 +18138,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'set-state-in-render',
|
||||
description: 'Validates against setting state during render',
|
||||
description: 'Validates against setting state during render, which can trigger additional renders and potential infinite render loops',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18137,7 +18146,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'static-components',
|
||||
description: 'Validates that components are static, not recreated every render',
|
||||
description: 'Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18169,7 +18178,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'unsupported-syntax',
|
||||
description: 'Validates against syntax that we do not plan to support',
|
||||
description: 'Validates against syntax that we do not plan to support in React Compiler',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
@@ -18177,7 +18186,7 @@ function getRuleForCategory(category) {
|
||||
return {
|
||||
category,
|
||||
name: 'use-memo',
|
||||
description: 'Validates usage of the useMemo() hook',
|
||||
description: 'Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.',
|
||||
recommended: true,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "eslint-plugin-react-hooks",
|
||||
"description": "ESLint rules for React Hooks",
|
||||
"version": "0.0.0-experimental-698bb4de-20250822",
|
||||
"version": "0.0.0-experimental-425ba0ad-20250822",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/react.git",
|
||||
|
||||
Reference in New Issue
Block a user