diff --git a/packages/react-dom/src/__tests__/ReactDOMForm-test.js b/packages/react-dom/src/__tests__/ReactDOMForm-test.js index b0d66a9e94c92..677c18425b522 100644 --- a/packages/react-dom/src/__tests__/ReactDOMForm-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMForm-test.js @@ -1324,7 +1324,7 @@ describe('ReactDOMForm', () => { let dispatch; function App() { - const [state, _dispatch, isPending] = useFormState(action, 0); + const [state, _dispatch, isPending] = useActionState(action, 0); dispatch = _dispatch; const pending = isPending ? 'Pending ' : ''; return ; diff --git a/packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js b/packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js index bff9fdabcfd0d..e8da630d4ee16 100644 --- a/packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js +++ b/packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js @@ -914,7 +914,7 @@ describe('ReactFlightDOMForm', () => { ); function Form({action}) { - const [errorMsg, dispatch] = useFormState(action, null); + const [errorMsg, dispatch] = useActionState(action, null); return
{errorMsg}
; }