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 [9644d20](9644d20)
  • Loading branch information
rickhanlonii committed Apr 9, 2024
1 parent dad4604 commit 3c7d51c
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c771016e19384e4b6e42e1c275bdf03fe51c2907
9644d206e8d92d0e31a9252d78933a48c62eb427
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}

var ReactVersion = "19.0.0-www-classic-c315fb9e";
var ReactVersion = "19.0.0-www-classic-8d7149a6";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -8966,8 +8966,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
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}

var ReactVersion = "19.0.0-www-modern-582f65a8";
var ReactVersion = "19.0.0-www-modern-2a52e118";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -8717,8 +8717,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
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13581,8 +13581,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 @@ -36145,7 +36145,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "19.0.0-www-classic-62ca9930";
var ReactVersion = "19.0.0-www-classic-969b8d04";

function createPortal$1(
children,
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -21138,8 +21138,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 @@ -45641,7 +45641,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "19.0.0-www-modern-69957e35";
var ReactVersion = "19.0.0-www-modern-03a3c121";

function createPortal$1(
children,
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOMTesting-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13718,8 +13718,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 @@ -36769,7 +36769,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "19.0.0-www-classic-5996c382";
var ReactVersion = "19.0.0-www-classic-27acdabf";

function createPortal$1(
children,
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOMTesting-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -21275,8 +21275,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 @@ -46397,7 +46397,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "19.0.0-www-modern-5fefe6d6";
var ReactVersion = "19.0.0-www-modern-ba8ee814";

function createPortal$1(
children,
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactTestRenderer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7907,8 +7907,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 @@ -26645,7 +26645,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "19.0.0-www-classic-142ddea8";
var ReactVersion = "19.0.0-www-classic-c5e9d708";

/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactTestRenderer-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -7907,8 +7907,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 @@ -26645,7 +26645,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "19.0.0-www-modern-142ddea8";
var ReactVersion = "19.0.0-www-modern-c5e9d708";

/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/__test_utils__/ReactAllWarnings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c7d51c

Please sign in to comment.