From f09e1599d631051a559974578a6d4c06effd95eb Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Fri, 22 Mar 2024 14:05:55 -0400 Subject: [PATCH] Fix test after merge conflict (#28616) Something went wrong when rebasing #28491 and renaming the hook. --- packages/react-dom/src/__tests__/ReactDOMForm-test.js | 2 +- .../src/__tests__/ReactFlightDOMForm-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}
; }