[Flight] Log aborted await and component renders (#33641)

<img width="926" alt="Screenshot 2025-06-25 at 1 02 14 PM"
src="https://github.com/user-attachments/assets/1877d13d-5259-4cc4-8f48-12981e3073fe"
/>

The I/O entry doesn't show as aborted in the Server Request track
because technically it wasn't. The end time is just made up. It's still
going. It's not aborted until the abort signal propagates and if we do
get that signal wired up before it emits, it instead would show up as
rejected.

---------

Co-authored-by: Hendrik Liebau <mail@hendrik-liebau.de>

DiffTrain build for [bb6c9d521e](https://github.com/facebook/react/commit/bb6c9d521e7f44eb9a9754a14cde62c8e6439e5e)
This commit is contained in:
sebmarkbage
2025-06-25 13:40:13 -07:00
co-authored by Hendrik Liebau
parent 74404dc86a
commit d0c88dba51
26 changed files with 117 additions and 117 deletions
+1 -1
View File
@@ -1 +1 @@
19.2.0-native-fb-9894c488-20250625
19.2.0-native-fb-bb6c9d52-20250625
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7aa7f8cead56b79b2800cf27ea3aee1f>>
* @generated SignedSource<<aef29cb3d4048e50d8225751261cd89a>>
*/
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<86f6e52b601c9212c0a2df00969cfc08>>
* @generated SignedSource<<787db512fb5d2eb4006cc8f0bda193d6>>
*/
"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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<86f6e52b601c9212c0a2df00969cfc08>>
* @generated SignedSource<<787db512fb5d2eb4006cc8f0bda193d6>>
*/
"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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8e074ca71cd180d0d1552d9f50c8a2ee>>
* @generated SignedSource<<c2228d81f21ee5cde8bf87e6a76e032f>>
*/
/*
@@ -28651,11 +28651,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-bb6c9d52-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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<214e9b286178f179f61d19d4e2e33862>>
* @generated SignedSource<<93e5b2db59595ae05f05b50e151fa5bc>>
*/
/*
@@ -17121,14 +17121,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version;
if (
"19.2.0-native-fb-9894c488-20250625" !==
"19.2.0-native-fb-bb6c9d52-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2023
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2023,
"19.2.0-native-fb-9894c488-20250625"
"19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<eb8cdf2cbf395b9ef82489ee3b5a7d46>>
* @generated SignedSource<<7c11bde30de8b988a84e58d4c9c1d1d2>>
*/
/*
@@ -19053,14 +19053,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2261 = React.version;
if (
"19.2.0-native-fb-9894c488-20250625" !==
"19.2.0-native-fb-bb6c9d52-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2261
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2261,
"19.2.0-native-fb-9894c488-20250625"
"19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625",
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<727ba832f1cbee1e1dbc93935792a08d>>
* @generated SignedSource<<c4cfea04bc83e0a3b84ae5318dbcecf5>>
*/
/*
@@ -28707,11 +28707,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-bb6c9d52-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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8ce6156a4bd7818ab4f97d690dcd9364>>
* @generated SignedSource<<5ce7ccbf6cd6786683c0bb0c7349d5b8>>
*/
/*
@@ -17132,14 +17132,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version;
if (
"19.2.0-native-fb-9894c488-20250625" !==
"19.2.0-native-fb-bb6c9d52-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2024
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2024,
"19.2.0-native-fb-9894c488-20250625"
"19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<42e3666353f304e91e408588a8bf36fe>>
* @generated SignedSource<<f63fd5d27766ef4122ea4c10c6305a1b>>
*/
/*
@@ -19068,14 +19068,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2262 = React.version;
if (
"19.2.0-native-fb-9894c488-20250625" !==
"19.2.0-native-fb-bb6c9d52-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2262
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2262,
"19.2.0-native-fb-9894c488-20250625"
"19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625",
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<977bd60630ef783455ff0d3597f4e9f3>>
* @generated SignedSource<<33c6fbfd3d2312db5ddc69502e3781e1>>
*/
"use strict";
@@ -15722,10 +15722,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15870,5 +15870,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<37d9b1d514be2d9e30c7af36322d3f06>>
* @generated SignedSource<<89c2ee95285f2fc3cd51944cd79f7607>>
*/
"use strict";
@@ -9905,10 +9905,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1453 = {
bundleType: 0,
version: "19.2.0-native-fb-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<61df7fc53cf658b3e2cf27d846ce99a9>>
* @generated SignedSource<<ea331b6f700d13bf2f12a12f2afb424e>>
*/
"use strict";
@@ -10525,10 +10525,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1260 = {
bundleType: 0,
version: "19.2.0-native-fb-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625",
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-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-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<397abd7f961e3d3ad5ecc04d3c0ff8f0>>
* @generated SignedSource<<c4da501d9da9e1bf7a649dce811af6df>>
*/
"use strict";
@@ -1413,7 +1413,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-native-fb-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<3781b019be8e22a0c6c4e9341a37d960>>
* @generated SignedSource<<da78ac394515e06aa005fa84b6a437d8>>
*/
"use strict";
@@ -589,4 +589,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<58d4c89c1f175149c6f0b1bce05e1e51>>
* @generated SignedSource<<9c3f2350cd8ebd730dcad8e66af17673>>
*/
"use strict";
@@ -593,7 +593,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-9894c488-20250625";
exports.version = "19.2.0-native-fb-bb6c9d52-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
9894c488e0d9a4d9759d80ba8666d4d094b894e9
bb6c9d521e7f44eb9a9754a14cde62c8e6439e5e
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e461f9bc0e6b68ee50217b242e895d8b>>
* @generated SignedSource<<cfb2cbcd745727c7adc1aaa2b1feb301>>
*/
"use strict";
@@ -18875,10 +18875,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<275d04e8cb6a38259df8591dab325cdc>>
* @generated SignedSource<<6ece9697fba79c757cad58c456956366>>
*/
"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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1257.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<72486951c02a0614d71045fcc174ddc6>>
* @generated SignedSource<<e8b72a0f65f0a3ccb17be0614875f057>>
*/
"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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1490.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2af74191a5d61899ec12f33509e31498>>
* @generated SignedSource<<66a775b0e2b65195086cafb06b52e59a>>
*/
"use strict";
@@ -19208,11 +19208,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-bb6c9d52-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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0eff702e6560c24b55ce8f9e1da6ddec>>
* @generated SignedSource<<d573da7cfdc32f79357e99cbf3ad4840>>
*/
"use strict";
@@ -11221,11 +11221,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-bb6c9d52-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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1313.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6259f22f235fd34d9bc12ef02f1b5149>>
* @generated SignedSource<<6fcfa9d521ba0231b5df2a6959f88414>>
*/
"use strict";
@@ -13113,11 +13113,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-bb6c9d52-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-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-bb6c9d52-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-9894c488-20250625",
version: "19.2.0-native-fb-bb6c9d52-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
reconcilerVersion: "19.2.0-native-fb-bb6c9d52-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1546.rendererConfig = extraDevToolsConfig);
@@ -12,7 +12,7 @@
* @lightSyntaxTransform
* @preventMunge
* @oncall react_core
* @generated SignedSource<<ba4d512060ee38190195b8a839dbd9b0>>
* @generated SignedSource<<8e98f9380eef35f26401f575917c3fd4>>
*/
'use strict';
@@ -27077,6 +27077,9 @@ function printFunction(fn) {
if (fn.id !== null) {
definition += fn.id;
}
else {
definition += '<<anonymous>>';
}
if (fn.params.length !== 0) {
definition +=
'(' +
@@ -27095,10 +27098,8 @@ function printFunction(fn) {
else {
definition += '()';
}
if (definition.length !== 0) {
output.push(definition);
}
output.push(`: ${printType(fn.returnType)} @ ${printPlace(fn.returns)}`);
definition += `: ${printPlace(fn.returns)}`;
output.push(definition);
output.push(...fn.directives);
output.push(printHIR(fn.body));
return output.join('\n');
@@ -30923,7 +30924,6 @@ function lower$1(func, env, bindings = null, capturedRefs = new Map()) {
params,
fnType: bindings == null ? env.fnType : 'Other',
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, (_b = func.node.loc) !== null && _b !== void 0 ? _b : GeneratedSource),
body: builder.build(),
context,
@@ -44547,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': {
@@ -51684,12 +51684,13 @@ function inferMutationAliasingRanges(fn, { isFunctionExpression }) {
}
}
}
const returns = fn.returns.identifier;
functionEffects.push({
kind: 'Create',
into: fn.returns,
value: fn.returnType.kind === 'Primitive'
value: isPrimitiveType(returns)
? ValueKind.Primitive
: isJsxType(fn.returnType)
: isJsxType(returns.type)
? ValueKind.Frozen
: ValueKind.Mutable,
reason: ValueReason.KnownReturnSignature,
@@ -55273,7 +55274,8 @@ function apply(func, unifier) {
}
}
}
func.returnType = unifier.get(func.returnType);
const returns = func.returns.identifier;
returns.type = unifier.get(returns.type);
}
function equation(left, right) {
return {
@@ -55315,13 +55317,13 @@ function* generate(func) {
}
}
if (returnTypes.length > 1) {
yield equation(func.returnType, {
yield equation(func.returns.identifier.type, {
kind: 'Phi',
operands: returnTypes,
});
}
else if (returnTypes.length === 1) {
yield equation(func.returnType, returnTypes[0]);
yield equation(func.returns.identifier.type, returnTypes[0]);
}
}
function setName(names, id, name) {
@@ -55532,7 +55534,7 @@ function* generateInstructionTypes(env, names, instr) {
yield equation(left, {
kind: 'Function',
shapeId: BuiltInFunctionId,
return: value.loweredFunc.func.returnType,
return: value.loweredFunc.func.returns.identifier.type,
isConstructor: false,
});
break;
@@ -57675,7 +57677,6 @@ function emitSelectorFn(env, keys) {
env,
params: [obj],
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, GeneratedSource),
context: [],
effects: null,
@@ -58093,7 +58094,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) {
env,
params: [propsObj],
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, GeneratedSource),
context: [],
effects: null,
@@ -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<<190c497bc6d4b2312c051164082a89ab>>
* @generated SignedSource<<6e88fc340696386e79bbd83502277d08>>
*/
'use strict';
@@ -27062,6 +27062,9 @@ function printFunction(fn) {
if (fn.id !== null) {
definition += fn.id;
}
else {
definition += '<<anonymous>>';
}
if (fn.params.length !== 0) {
definition +=
'(' +
@@ -27080,10 +27083,8 @@ function printFunction(fn) {
else {
definition += '()';
}
if (definition.length !== 0) {
output.push(definition);
}
output.push(`: ${printType(fn.returnType)} @ ${printPlace(fn.returns)}`);
definition += `: ${printPlace(fn.returns)}`;
output.push(definition);
output.push(...fn.directives);
output.push(printHIR(fn.body));
return output.join('\n');
@@ -30908,7 +30909,6 @@ function lower$1(func, env, bindings = null, capturedRefs = new Map()) {
params,
fnType: bindings == null ? env.fnType : 'Other',
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, (_b = func.node.loc) !== null && _b !== void 0 ? _b : GeneratedSource),
body: builder.build(),
context,
@@ -44326,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': {
@@ -51463,12 +51463,13 @@ function inferMutationAliasingRanges(fn, { isFunctionExpression }) {
}
}
}
const returns = fn.returns.identifier;
functionEffects.push({
kind: 'Create',
into: fn.returns,
value: fn.returnType.kind === 'Primitive'
value: isPrimitiveType(returns)
? ValueKind.Primitive
: isJsxType(fn.returnType)
: isJsxType(returns.type)
? ValueKind.Frozen
: ValueKind.Mutable,
reason: ValueReason.KnownReturnSignature,
@@ -55052,7 +55053,8 @@ function apply(func, unifier) {
}
}
}
func.returnType = unifier.get(func.returnType);
const returns = func.returns.identifier;
returns.type = unifier.get(returns.type);
}
function equation(left, right) {
return {
@@ -55094,13 +55096,13 @@ function* generate(func) {
}
}
if (returnTypes.length > 1) {
yield equation(func.returnType, {
yield equation(func.returns.identifier.type, {
kind: 'Phi',
operands: returnTypes,
});
}
else if (returnTypes.length === 1) {
yield equation(func.returnType, returnTypes[0]);
yield equation(func.returns.identifier.type, returnTypes[0]);
}
}
function setName(names, id, name) {
@@ -55311,7 +55313,7 @@ function* generateInstructionTypes(env, names, instr) {
yield equation(left, {
kind: 'Function',
shapeId: BuiltInFunctionId,
return: value.loweredFunc.func.returnType,
return: value.loweredFunc.func.returns.identifier.type,
isConstructor: false,
});
break;
@@ -57454,7 +57456,6 @@ function emitSelectorFn(env, keys) {
env,
params: [obj],
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, GeneratedSource),
context: [],
effects: null,
@@ -57872,7 +57873,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) {
env,
params: [propsObj],
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, GeneratedSource),
context: [],
effects: null,
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0-experimental-9894c488-20250625",
"version": "0.0.0-experimental-bb6c9d52-20250625",
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",