[compiler] Avoid empty switch cases (#33625)

Small cosmetic win, found this when i was looking at some code
internally with lots of cases that all share the same logic. Previously,
all the but last one would have an empty block.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33625).
* #33643
* #33642
* #33640
* __->__ #33625
* #33624

DiffTrain build for [e130c08b06](https://github.com/facebook/react/commit/e130c08b06470b5fc4ec8095310d19e782924427)
This commit is contained in:
josephsavona
2025-06-25 11:17:05 -07:00
parent fc97c65ed0
commit 094fa5e535
26 changed files with 105 additions and 103 deletions
+1 -1
View File
@@ -1 +1 @@
19.2.0-native-fb-7a3ffef7-20250625
19.2.0-native-fb-e130c08b-20250625
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<1abf9bbcc860e717bc8adfe10f524640>>
* @generated SignedSource<<d881b16152ce0ee164b83be2c4350e70>>
*/
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<20ff73d65444bbc2713fa40eed4306d7>>
* @generated SignedSource<<6bb137893e32f92de29fd33f2f29e56d>>
*/
"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-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<20ff73d65444bbc2713fa40eed4306d7>>
* @generated SignedSource<<6bb137893e32f92de29fd33f2f29e56d>>
*/
"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-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<181af218a87b23d184f355e26019ba48>>
* @generated SignedSource<<ef57c267a92ca01194a637bd578815d7>>
*/
/*
@@ -28651,11 +28651,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-7a3ffef7-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-e130c08b-20250625" !== 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-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -28692,10 +28692,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -28833,5 +28833,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9f2480281345d6eb3d91d40d922d5445>>
* @generated SignedSource<<a1b07ff232db6347e0d1cc9a1d9cb8bd>>
*/
/*
@@ -17121,14 +17121,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version;
if (
"19.2.0-native-fb-7a3ffef7-20250625" !==
"19.2.0-native-fb-e130c08b-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2023
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2023,
"19.2.0-native-fb-7a3ffef7-20250625"
"19.2.0-native-fb-e130c08b-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17150,10 +17150,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2542 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2543 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17251,4 +17251,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0064ffe71ce9359ff2e85eb6917c1453>>
* @generated SignedSource<<46f43939266513cdd4d5042fe49826d3>>
*/
/*
@@ -19053,14 +19053,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2261 = React.version;
if (
"19.2.0-native-fb-7a3ffef7-20250625" !==
"19.2.0-native-fb-e130c08b-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2261
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2261,
"19.2.0-native-fb-7a3ffef7-20250625"
"19.2.0-native-fb-e130c08b-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19082,10 +19082,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2268 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625",
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$331 = 0;
@@ -19198,4 +19198,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<dda28ef8a2b205afbc6f4fe9d65ddc3f>>
* @generated SignedSource<<893d210ae28d5944f4bf8530d0216e6b>>
*/
/*
@@ -28707,11 +28707,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-7a3ffef7-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-e130c08b-20250625" !== 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-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -28748,10 +28748,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -29205,7 +29205,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<3be29fe631133e7aab2ea410a1fc77a9>>
* @generated SignedSource<<2bc6c13448bd986e4644c03571985dbd>>
*/
/*
@@ -17132,14 +17132,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version;
if (
"19.2.0-native-fb-7a3ffef7-20250625" !==
"19.2.0-native-fb-e130c08b-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2024
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2024,
"19.2.0-native-fb-7a3ffef7-20250625"
"19.2.0-native-fb-e130c08b-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17161,10 +17161,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2545 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2546 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17415,4 +17415,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0d85fb52dbcbb609cc637d3ba30251c5>>
* @generated SignedSource<<e45ab25206dc9c24a061e33c46bfa378>>
*/
/*
@@ -19068,14 +19068,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2262 = React.version;
if (
"19.2.0-native-fb-7a3ffef7-20250625" !==
"19.2.0-native-fb-e130c08b-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2262
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2262,
"19.2.0-native-fb-7a3ffef7-20250625"
"19.2.0-native-fb-e130c08b-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19097,10 +19097,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2269 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625",
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$331 = 0;
@@ -19366,7 +19366,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<935ec44cc0d38a0f41856743afccd8ef>>
* @generated SignedSource<<e9c00fc5c636c53d32aea10311781356>>
*/
"use strict";
@@ -15722,10 +15722,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15870,5 +15870,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f340d133f9c92668432d8ba535876321>>
* @generated SignedSource<<268d5a14dc847e98f38848cfe8f4929c>>
*/
"use strict";
@@ -9905,10 +9905,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1453 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1454 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10044,4 +10044,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f6eef15c18ee1d19186dd45791f4754d>>
* @generated SignedSource<<ab83d5e815af323310e8d2a7ecc67dd8>>
*/
"use strict";
@@ -10525,10 +10525,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1260 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625",
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$155 = 0;
@@ -10679,4 +10679,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<823bdb3acbf9ea1fdaa54035681c8ad3>>
* @generated SignedSource<<80975a2832a7080632a220f184504d9c>>
*/
"use strict";
@@ -1413,7 +1413,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7983355a5b04d4ef3eaf2c30a7ad5662>>
* @generated SignedSource<<3b22b346d2c2d340ed16f80c9d5b3131>>
*/
"use strict";
@@ -589,4 +589,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b1a13b08cbf57d7aea8677eeebb1d262>>
* @generated SignedSource<<0133d305c1bf0c26368f6796515b1ab1>>
*/
"use strict";
@@ -593,7 +593,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
exports.version = "19.2.0-native-fb-e130c08b-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
7a3ffef70339c10f8d65a27b88cd73bfbe13eb8a
e130c08b06470b5fc4ec8095310d19e782924427
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7581843a2cfaa6a692230809b2d00e6c>>
* @generated SignedSource<<b84336ae6934510a6ad11ddb2ffda0c7>>
*/
"use strict";
@@ -18875,10 +18875,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7e84d6404be124f73be5a4cec976190d>>
* @generated SignedSource<<64aafacb59cd74686ff07d97f3f52083>>
*/
"use strict";
@@ -11029,10 +11029,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1257 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1257.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e00814911b0d7e6b98af158e8e66a4fa>>
* @generated SignedSource<<f6c9b189e152aed3caf7d028722fbe13>>
*/
"use strict";
@@ -12932,10 +12932,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1490 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1490.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f9621ed3b0fa2d4c52c8182f63e7744f>>
* @generated SignedSource<<94103cd99b60c1bb0da38eb87f9733e0>>
*/
"use strict";
@@ -19208,11 +19208,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-7a3ffef7-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-e130c08b-20250625" !== 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-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -19238,10 +19238,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5454d3dba6b39f01f33d0a66d9f20bee>>
* @generated SignedSource<<d8c0fedb77e56e1e31c85408169ca246>>
*/
"use strict";
@@ -11221,11 +11221,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-7a3ffef7-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-e130c08b-20250625" !== 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-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11275,10 +11275,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1313 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1313.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8025e3ff7471c9bdb3cb246173ac690b>>
* @generated SignedSource<<21420dd18650e92159e8b7e4714b3722>>
*/
"use strict";
@@ -13113,11 +13113,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-7a3ffef7-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-e130c08b-20250625" !== 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-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -13167,10 +13167,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1546 = {
bundleType: 0,
version: "19.2.0-native-fb-7a3ffef7-20250625",
version: "19.2.0-native-fb-e130c08b-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1546.rendererConfig = extraDevToolsConfig);
@@ -12,7 +12,7 @@
* @lightSyntaxTransform
* @preventMunge
* @oncall react_core
* @generated SignedSource<<6b5ccdc72dcd58154e7873e789b28875>>
* @generated SignedSource<<ca132a775fb08b16c1d2c37797dd2e5e>>
*/
'use strict';
@@ -43993,12 +43993,9 @@ function codegenFunction(fn, { uniqueIdentifiers, fbtOperands, }) {
}
function codegenReactiveFunction(cx, fn) {
for (const param of fn.params) {
if (param.kind === 'Identifier') {
cx.temp.set(param.identifier.declarationId, null);
}
else {
cx.temp.set(param.place.identifier.declarationId, null);
}
const place = param.kind === 'Identifier' ? param : param.place;
cx.temp.set(place.identifier.declarationId, null);
cx.declare(place.identifier);
}
const params = fn.params.map(param => convertParameter(param));
const body = codegenBlock(cx, fn.body);
@@ -44550,7 +44547,7 @@ function codegenTerminal(cx, terminal) {
? codegenPlaceToExpression(cx, case_.test)
: null;
const block = codegenBlock(cx, case_.block);
return libExports$1.switchCase(test, [block]);
return libExports$1.switchCase(test, block.body.length === 0 ? [] : [block]);
}));
}
case 'throw': {
@@ -45629,6 +45626,10 @@ function compareScopeDeclaration(a, b) {
function extractScopeDeclarationsFromDestructuring(fn) {
const state = new State$1(fn.env);
for (const param of fn.params) {
const place = param.kind === 'Identifier' ? param : param.place;
state.declared.add(place.identifier.declarationId);
}
visitReactiveFunction(fn, new Visitor$9(), state);
}
let State$1 = class State {
@@ -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<<ed1bf5e98f62ea60a544d8bb67b929c7>>
* @generated SignedSource<<6b5208e0c1ed68042ba2b701c7c8078e>>
*/
'use strict';
@@ -43772,12 +43772,9 @@ function codegenFunction(fn, { uniqueIdentifiers, fbtOperands, }) {
}
function codegenReactiveFunction(cx, fn) {
for (const param of fn.params) {
if (param.kind === 'Identifier') {
cx.temp.set(param.identifier.declarationId, null);
}
else {
cx.temp.set(param.place.identifier.declarationId, null);
}
const place = param.kind === 'Identifier' ? param : param.place;
cx.temp.set(place.identifier.declarationId, null);
cx.declare(place.identifier);
}
const params = fn.params.map(param => convertParameter(param));
const body = codegenBlock(cx, fn.body);
@@ -44329,7 +44326,7 @@ function codegenTerminal(cx, terminal) {
? codegenPlaceToExpression(cx, case_.test)
: null;
const block = codegenBlock(cx, case_.block);
return libExports$1.switchCase(test, [block]);
return libExports$1.switchCase(test, block.body.length === 0 ? [] : [block]);
}));
}
case 'throw': {
@@ -45408,6 +45405,10 @@ function compareScopeDeclaration(a, b) {
function extractScopeDeclarationsFromDestructuring(fn) {
const state = new State$1(fn.env);
for (const param of fn.params) {
const place = param.kind === 'Identifier' ? param : param.place;
state.declared.add(place.identifier.declarationId);
}
visitReactiveFunction(fn, new Visitor$9(), state);
}
let State$1 = class State {
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0-experimental-7a3ffef7-20250625",
"version": "0.0.0-experimental-e130c08b-20250625",
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",