GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Soften useFormState warning (#28788) · react/react-native@9644d20

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • react-dom/src/__tests__
      • ReactDOMFizzServer-test.js
      • ReactDOMForm-test.js
    • react-reconciler/src
      • ReactFiberHooks.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js‎

Copy file name to clipboardExpand all lines: packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe('ReactDOMFizzServer', () => {
104104
console.error = (error, ...args) => {
105105
if (
106106
typeof error !== 'string' ||
107-
error.indexOf('ReactDOM.useFormState has been deprecated') === -1
107+
error.indexOf('ReactDOM.useFormState has been renamed') === -1
108108
) {
109109
originalConsoleError(error, ...args);
110110
}
Collapse file

‎packages/react-dom/src/__tests__/ReactDOMForm-test.js‎

Copy file name to clipboardExpand all lines: packages/react-dom/src/__tests__/ReactDOMForm-test.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('ReactDOMForm', () => {
6666
console.error = (error, ...args) => {
6767
if (
6868
typeof error !== 'string' ||
69-
error.indexOf('ReactDOM.useFormState has been deprecated') === -1
69+
error.indexOf('ReactDOM.useFormState has been renamed') === -1
7070
) {
7171
originalConsoleError(error, ...args);
7272
}
Collapse file

‎packages/react-reconciler/src/ReactFiberHooks.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberHooks.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ function warnOnUseFormStateInDev(): void {
395395
didWarnAboutUseFormState.add(componentName);
396396

397397
console.error(
398-
'ReactDOM.useFormState has been deprecated and replaced by ' +
399-
'React.useActionState. Please update %s to use React.useActionState.',
398+
'ReactDOM.useFormState has been renamed to React.useActionState. ' +
399+
'Please update %s to use React.useActionState.',
400400
componentName,
401401
);
402402
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.