Skip to content

Commit a88abd3

Browse files
committed
Clarify useActionState async non-transition warning (#32207)
#28491 (comment) DiffTrain build for [b65afdd](b65afdd)
1 parent 7ab02f1 commit a88abd3

23 files changed

+91
-91
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.1.0-native-fb-028c8e6c-20250121
1+
19.1.0-native-fb-b65afdd0-20250124

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<196643d457b7976a620753cc80271271>>
10+
* @generated SignedSource<<f86a149ff967387732d4233e07747d36>>
1111
*/
1212

1313
"use strict";
@@ -428,5 +428,5 @@ __DEV__ &&
428428
exports.useFormStatus = function () {
429429
return resolveDispatcher().useHostTransitionStatus();
430430
};
431-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
431+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";
432432
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<00d882adfafb6d1a9627beb598263fa8>>
10+
* @generated SignedSource<<d555752c449cd18ecbdfd3e8cee0f299>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
206+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<00d882adfafb6d1a9627beb598263fa8>>
10+
* @generated SignedSource<<d555752c449cd18ecbdfd3e8cee0f299>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
206+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<7e27dad790bbcabadfdb7af782fa0c42>>
10+
* @generated SignedSource<<baeae2570277ef1966b0d12de09d2b22>>
1111
*/
1212

1313
/*
@@ -6270,7 +6270,7 @@ __DEV__ &&
62706270
),
62716271
node.isTransition ||
62726272
error$jscomp$0(
6273-
"An async function was passed to useActionState, but it was dispatched outside of an action context. This is likely not what you intended. Either pass the dispatch function to an `action` prop, or dispatch manually inside `startTransition`"
6273+
"An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop."
62746274
))
62756275
: onActionSuccess(actionQueue, node, returnValue);
62766276
}
@@ -25957,11 +25957,11 @@ __DEV__ &&
2595725957
};
2595825958
(function () {
2595925959
var isomorphicReactPackageVersion = React.version;
25960-
if ("19.1.0-native-fb-028c8e6c-20250121" !== isomorphicReactPackageVersion)
25960+
if ("19.1.0-native-fb-b65afdd0-20250124" !== isomorphicReactPackageVersion)
2596125961
throw Error(
2596225962
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2596325963
(isomorphicReactPackageVersion +
25964-
"\n - react-dom: 19.1.0-native-fb-028c8e6c-20250121\nLearn more: https://react.dev/warnings/version-mismatch")
25964+
"\n - react-dom: 19.1.0-native-fb-b65afdd0-20250124\nLearn more: https://react.dev/warnings/version-mismatch")
2596525965
);
2596625966
})();
2596725967
("function" === typeof Map &&
@@ -25998,10 +25998,10 @@ __DEV__ &&
2599825998
!(function () {
2599925999
var internals = {
2600026000
bundleType: 1,
26001-
version: "19.1.0-native-fb-028c8e6c-20250121",
26001+
version: "19.1.0-native-fb-b65afdd0-20250124",
2600226002
rendererPackageName: "react-dom",
2600326003
currentDispatcherRef: ReactSharedInternals,
26004-
reconcilerVersion: "19.1.0-native-fb-028c8e6c-20250121"
26004+
reconcilerVersion: "19.1.0-native-fb-b65afdd0-20250124"
2600526005
};
2600626006
internals.overrideHookState = overrideHookState;
2600726007
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26147,5 +26147,5 @@ __DEV__ &&
2614726147
listenToAllSupportedEvents(container);
2614826148
return new ReactDOMHydrationRoot(initialChildren);
2614926149
};
26150-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
26150+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";
2615126151
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b58e5efc1912dfa86b64057623e9bd9b>>
10+
* @generated SignedSource<<fbce17dbf10019f688b903e340d81493>>
1111
*/
1212

1313
/*
@@ -15968,14 +15968,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1596815968
};
1596915969
var isomorphicReactPackageVersion$jscomp$inline_1785 = React.version;
1597015970
if (
15971-
"19.1.0-native-fb-028c8e6c-20250121" !==
15971+
"19.1.0-native-fb-b65afdd0-20250124" !==
1597215972
isomorphicReactPackageVersion$jscomp$inline_1785
1597315973
)
1597415974
throw Error(
1597515975
formatProdErrorMessage(
1597615976
527,
1597715977
isomorphicReactPackageVersion$jscomp$inline_1785,
15978-
"19.1.0-native-fb-028c8e6c-20250121"
15978+
"19.1.0-native-fb-b65afdd0-20250124"
1597915979
)
1598015980
);
1598115981
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15997,10 +15997,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1599715997
};
1599815998
var internals$jscomp$inline_2241 = {
1599915999
bundleType: 0,
16000-
version: "19.1.0-native-fb-028c8e6c-20250121",
16000+
version: "19.1.0-native-fb-b65afdd0-20250124",
1600116001
rendererPackageName: "react-dom",
1600216002
currentDispatcherRef: ReactSharedInternals,
16003-
reconcilerVersion: "19.1.0-native-fb-028c8e6c-20250121"
16003+
reconcilerVersion: "19.1.0-native-fb-b65afdd0-20250124"
1600416004
};
1600516005
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1600616006
var hook$jscomp$inline_2242 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16106,4 +16106,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1610616106
listenToAllSupportedEvents(container);
1610716107
return new ReactDOMHydrationRoot(initialChildren);
1610816108
};
16109-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
16109+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<26c5c9bcaf4f9c963a355c567fee66e7>>
10+
* @generated SignedSource<<25cb6adf5eeca922c17401515bf4a2c5>>
1111
*/
1212

1313
/*
@@ -16617,14 +16617,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1661716617
};
1661816618
var isomorphicReactPackageVersion$jscomp$inline_1880 = React.version;
1661916619
if (
16620-
"19.1.0-native-fb-028c8e6c-20250121" !==
16620+
"19.1.0-native-fb-b65afdd0-20250124" !==
1662116621
isomorphicReactPackageVersion$jscomp$inline_1880
1662216622
)
1662316623
throw Error(
1662416624
formatProdErrorMessage(
1662516625
527,
1662616626
isomorphicReactPackageVersion$jscomp$inline_1880,
16627-
"19.1.0-native-fb-028c8e6c-20250121"
16627+
"19.1.0-native-fb-b65afdd0-20250124"
1662816628
)
1662916629
);
1663016630
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16646,10 +16646,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1664616646
};
1664716647
var internals$jscomp$inline_1887 = {
1664816648
bundleType: 0,
16649-
version: "19.1.0-native-fb-028c8e6c-20250121",
16649+
version: "19.1.0-native-fb-b65afdd0-20250124",
1665016650
rendererPackageName: "react-dom",
1665116651
currentDispatcherRef: ReactSharedInternals,
16652-
reconcilerVersion: "19.1.0-native-fb-028c8e6c-20250121",
16652+
reconcilerVersion: "19.1.0-native-fb-b65afdd0-20250124",
1665316653
getLaneLabelMap: function () {
1665416654
for (
1665516655
var map = new Map(), lane = 1, index$292 = 0;
@@ -16770,4 +16770,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1677016770
listenToAllSupportedEvents(container);
1677116771
return new ReactDOMHydrationRoot(initialChildren);
1677216772
};
16773-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
16773+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<00a5a33095096e7adddb3fdaeea26c8d>>
10+
* @generated SignedSource<<28e1ae0e704a3d0f18caa0f827720417>>
1111
*/
1212

1313
/*
@@ -6278,7 +6278,7 @@ __DEV__ &&
62786278
),
62796279
node.isTransition ||
62806280
error$jscomp$0(
6281-
"An async function was passed to useActionState, but it was dispatched outside of an action context. This is likely not what you intended. Either pass the dispatch function to an `action` prop, or dispatch manually inside `startTransition`"
6281+
"An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop."
62826282
))
62836283
: onActionSuccess(actionQueue, node, returnValue);
62846284
}
@@ -26018,11 +26018,11 @@ __DEV__ &&
2601826018
};
2601926019
(function () {
2602026020
var isomorphicReactPackageVersion = React.version;
26021-
if ("19.1.0-native-fb-028c8e6c-20250121" !== isomorphicReactPackageVersion)
26021+
if ("19.1.0-native-fb-b65afdd0-20250124" !== isomorphicReactPackageVersion)
2602226022
throw Error(
2602326023
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2602426024
(isomorphicReactPackageVersion +
26025-
"\n - react-dom: 19.1.0-native-fb-028c8e6c-20250121\nLearn more: https://react.dev/warnings/version-mismatch")
26025+
"\n - react-dom: 19.1.0-native-fb-b65afdd0-20250124\nLearn more: https://react.dev/warnings/version-mismatch")
2602626026
);
2602726027
})();
2602826028
("function" === typeof Map &&
@@ -26059,10 +26059,10 @@ __DEV__ &&
2605926059
!(function () {
2606026060
var internals = {
2606126061
bundleType: 1,
26062-
version: "19.1.0-native-fb-028c8e6c-20250121",
26062+
version: "19.1.0-native-fb-b65afdd0-20250124",
2606326063
rendererPackageName: "react-dom",
2606426064
currentDispatcherRef: ReactSharedInternals,
26065-
reconcilerVersion: "19.1.0-native-fb-028c8e6c-20250121"
26065+
reconcilerVersion: "19.1.0-native-fb-b65afdd0-20250124"
2606626066
};
2606726067
internals.overrideHookState = overrideHookState;
2606826068
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26524,7 +26524,7 @@ __DEV__ &&
2652426524
exports.useFormStatus = function () {
2652526525
return resolveDispatcher().useHostTransitionStatus();
2652626526
};
26527-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
26527+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";
2652826528
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2652926529
"function" ===
2653026530
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<20122955dd5629d8d1ab88d6929c9020>>
10+
* @generated SignedSource<<fbf76f944ce7eb32a37ce046a1cfb88d>>
1111
*/
1212

1313
/*
@@ -15979,14 +15979,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1597915979
};
1598015980
var isomorphicReactPackageVersion$jscomp$inline_1786 = React.version;
1598115981
if (
15982-
"19.1.0-native-fb-028c8e6c-20250121" !==
15982+
"19.1.0-native-fb-b65afdd0-20250124" !==
1598315983
isomorphicReactPackageVersion$jscomp$inline_1786
1598415984
)
1598515985
throw Error(
1598615986
formatProdErrorMessage(
1598715987
527,
1598815988
isomorphicReactPackageVersion$jscomp$inline_1786,
15989-
"19.1.0-native-fb-028c8e6c-20250121"
15989+
"19.1.0-native-fb-b65afdd0-20250124"
1599015990
)
1599115991
);
1599215992
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16008,10 +16008,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1600816008
};
1600916009
var internals$jscomp$inline_2244 = {
1601016010
bundleType: 0,
16011-
version: "19.1.0-native-fb-028c8e6c-20250121",
16011+
version: "19.1.0-native-fb-b65afdd0-20250124",
1601216012
rendererPackageName: "react-dom",
1601316013
currentDispatcherRef: ReactSharedInternals,
16014-
reconcilerVersion: "19.1.0-native-fb-028c8e6c-20250121"
16014+
reconcilerVersion: "19.1.0-native-fb-b65afdd0-20250124"
1601516015
};
1601616016
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1601716017
var hook$jscomp$inline_2245 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16271,4 +16271,4 @@ exports.useFormState = function (action, initialState, permalink) {
1627116271
exports.useFormStatus = function () {
1627216272
return ReactSharedInternals.H.useHostTransitionStatus();
1627316273
};
16274-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
16274+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<cf448d1f28418996d1b2d128e2cfb847>>
10+
* @generated SignedSource<<45fa11d45d96b5c877c9d6e02960001e>>
1111
*/
1212

1313
/*
@@ -16632,14 +16632,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1663216632
};
1663316633
var isomorphicReactPackageVersion$jscomp$inline_1881 = React.version;
1663416634
if (
16635-
"19.1.0-native-fb-028c8e6c-20250121" !==
16635+
"19.1.0-native-fb-b65afdd0-20250124" !==
1663616636
isomorphicReactPackageVersion$jscomp$inline_1881
1663716637
)
1663816638
throw Error(
1663916639
formatProdErrorMessage(
1664016640
527,
1664116641
isomorphicReactPackageVersion$jscomp$inline_1881,
16642-
"19.1.0-native-fb-028c8e6c-20250121"
16642+
"19.1.0-native-fb-b65afdd0-20250124"
1664316643
)
1664416644
);
1664516645
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16661,10 +16661,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1666116661
};
1666216662
var internals$jscomp$inline_1888 = {
1666316663
bundleType: 0,
16664-
version: "19.1.0-native-fb-028c8e6c-20250121",
16664+
version: "19.1.0-native-fb-b65afdd0-20250124",
1666516665
rendererPackageName: "react-dom",
1666616666
currentDispatcherRef: ReactSharedInternals,
16667-
reconcilerVersion: "19.1.0-native-fb-028c8e6c-20250121",
16667+
reconcilerVersion: "19.1.0-native-fb-b65afdd0-20250124",
1666816668
getLaneLabelMap: function () {
1666916669
for (
1667016670
var map = new Map(), lane = 1, index$292 = 0;
@@ -16939,7 +16939,7 @@ exports.useFormState = function (action, initialState, permalink) {
1693916939
exports.useFormStatus = function () {
1694016940
return ReactSharedInternals.H.useHostTransitionStatus();
1694116941
};
16942-
exports.version = "19.1.0-native-fb-028c8e6c-20250121";
16942+
exports.version = "19.1.0-native-fb-b65afdd0-20250124";
1694316943
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1694416944
"function" ===
1694516945
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)