Skip to content

Commit

Permalink
Soften useFormState warning (#28788)
Browse files Browse the repository at this point in the history
It's not deprecated, it's really just renamed. Let's make the warning
less scary.

DiffTrain build for commit 9644d20.
  • Loading branch information
rickhanlonii committed Apr 9, 2024
1 parent deede8d commit 7ea335a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6e42bfca9701ca8864d4f9604499cd79>>
* @generated SignedSource<<adb9aab2e8546b87933aac3aac47e82d>>
*/

"use strict";
Expand Down Expand Up @@ -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
);
}
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d50323eb845c5fde0d720cae888bf35dedd05506
9644d206e8d92d0e31a9252d78933a48c62eb427
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0a8d8b8854497345c20ddcfdc4519d53>>
* @generated SignedSource<<f6597e9005c61ca92bee97c0ac29c4ba>>
*/

"use strict";
Expand Down Expand Up @@ -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
);
}
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a0e1a9af73fac74c9f89c71717150eae>>
* @generated SignedSource<<37233a4ad08d9bcf021f585ac680bdb6>>
*/

"use strict";
Expand Down Expand Up @@ -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
);
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7ea335a

Please sign in to comment.