Skip to content

Commit 7ea335a

Browse files
committed
Soften useFormState warning (#28788)
It's not deprecated, it's really just renamed. Let's make the warning less scary. DiffTrain build for commit 9644d20.
1 parent deede8d commit 7ea335a

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

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

1313
"use strict";
@@ -7956,8 +7956,8 @@ if (__DEV__) {
79567956
didWarnAboutUseFormState.add(componentName);
79577957

79587958
error(
7959-
"ReactDOM.useFormState has been deprecated and replaced by " +
7960-
"React.useActionState. Please update %s to use React.useActionState.",
7959+
"ReactDOM.useFormState has been renamed to React.useActionState. " +
7960+
"Please update %s to use React.useActionState.",
79617961
componentName
79627962
);
79637963
}
@@ -26590,7 +26590,7 @@ if (__DEV__) {
2659026590
return root;
2659126591
}
2659226592

26593-
var ReactVersion = "19.0.0-canary-0c4d3f45";
26593+
var ReactVersion = "19.0.0-canary-8e2720f2";
2659426594

2659526595
/*
2659626596
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d50323eb845c5fde0d720cae888bf35dedd05506
1+
9644d206e8d92d0e31a9252d78933a48c62eb427

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

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

1313
"use strict";
@@ -11411,8 +11411,8 @@ to return true:wantsResponderID| |
1141111411
didWarnAboutUseFormState.add(componentName);
1141211412

1141311413
error(
11414-
"ReactDOM.useFormState has been deprecated and replaced by " +
11415-
"React.useActionState. Please update %s to use React.useActionState.",
11414+
"ReactDOM.useFormState has been renamed to React.useActionState. " +
11415+
"Please update %s to use React.useActionState.",
1141611416
componentName
1141711417
);
1141811418
}
@@ -30237,7 +30237,7 @@ to return true:wantsResponderID| |
3023730237
return root;
3023830238
}
3023930239

30240-
var ReactVersion = "19.0.0-canary-ba45b8b0";
30240+
var ReactVersion = "19.0.0-canary-0c451732";
3024130241

3024230242
/*
3024330243
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js

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

1313
"use strict";
@@ -11682,8 +11682,8 @@ to return true:wantsResponderID| |
1168211682
didWarnAboutUseFormState.add(componentName);
1168311683

1168411684
error(
11685-
"ReactDOM.useFormState has been deprecated and replaced by " +
11686-
"React.useActionState. Please update %s to use React.useActionState.",
11685+
"ReactDOM.useFormState has been renamed to React.useActionState. " +
11686+
"Please update %s to use React.useActionState.",
1168711687
componentName
1168811688
);
1168911689
}
@@ -30677,7 +30677,7 @@ to return true:wantsResponderID| |
3067730677
return root;
3067830678
}
3067930679

30680-
var ReactVersion = "19.0.0-canary-e9c8d4c9";
30680+
var ReactVersion = "19.0.0-canary-94b5e823";
3068130681

3068230682
/*
3068330683
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

0 commit comments

Comments
 (0)