mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
+4
-4
@@ -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
@@ -1 +1 @@
|
||||
d50323eb845c5fde0d720cae888bf35dedd05506
|
||||
9644d206e8d92d0e31a9252d78933a48c62eb427
|
||||
|
||||
+4
-4
@@ -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
|
||||
|
||||
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user