Soften useFormState warning (#28788)

It's not deprecated, it's really just renamed. Let's make the warning
less scary.

DiffTrain build for commit https://github.com/facebook/react/commit/9644d206e8d92d0e31a9252d78933a48c62eb427.
This commit is contained in:
rickhanlonii
2024-04-09 03:26:13 +00:00
parent deede8d187
commit 7ea335a4c8
4 changed files with 13 additions and 13 deletions
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6e42bfca9701ca8864d4f9604499cd79>>
* @generated SignedSource<<adb9aab2e8546b87933aac3aac47e82d>>
*/
"use strict";
@@ -7956,8 +7956,8 @@ if (__DEV__) {
didWarnAboutUseFormState.add(componentName);
error(
"ReactDOM.useFormState has been deprecated and replaced by " +
"React.useActionState. Please update %s to use React.useActionState.",
"ReactDOM.useFormState has been renamed to React.useActionState. " +
"Please update %s to use React.useActionState.",
componentName
);
}
@@ -26590,7 +26590,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-canary-0c4d3f45";
var ReactVersion = "19.0.0-canary-8e2720f2";
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -1 +1 @@
d50323eb845c5fde0d720cae888bf35dedd05506
9644d206e8d92d0e31a9252d78933a48c62eb427
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0a8d8b8854497345c20ddcfdc4519d53>>
* @generated SignedSource<<f6597e9005c61ca92bee97c0ac29c4ba>>
*/
"use strict";
@@ -11411,8 +11411,8 @@ to return true:wantsResponderID| |
didWarnAboutUseFormState.add(componentName);
error(
"ReactDOM.useFormState has been deprecated and replaced by " +
"React.useActionState. Please update %s to use React.useActionState.",
"ReactDOM.useFormState has been renamed to React.useActionState. " +
"Please update %s to use React.useActionState.",
componentName
);
}
@@ -30237,7 +30237,7 @@ to return true:wantsResponderID| |
return root;
}
var ReactVersion = "19.0.0-canary-ba45b8b0";
var ReactVersion = "19.0.0-canary-0c451732";
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a0e1a9af73fac74c9f89c71717150eae>>
* @generated SignedSource<<37233a4ad08d9bcf021f585ac680bdb6>>
*/
"use strict";
@@ -11682,8 +11682,8 @@ to return true:wantsResponderID| |
didWarnAboutUseFormState.add(componentName);
error(
"ReactDOM.useFormState has been deprecated and replaced by " +
"React.useActionState. Please update %s to use React.useActionState.",
"ReactDOM.useFormState has been renamed to React.useActionState. " +
"Please update %s to use React.useActionState.",
componentName
);
}
@@ -30677,7 +30677,7 @@ to return true:wantsResponderID| |
return root;
}
var ReactVersion = "19.0.0-canary-e9c8d4c9";
var ReactVersion = "19.0.0-canary-94b5e823";
/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol