Fix test after merge conflict (#28616)
Something went wrong when rebasing #28491 and renaming the hook.
Jan Kassens committed
Mar 22, 2024 at 14:05 UTC
f09e1599d631051a559974578a6d4c06effd95eb
2 files changed
+2
-2
packages/react-dom/src/__tests__/ReactDOMForm-test.js
+1
-1
@@ -1324,7 +1324,7 @@ describe('ReactDOMForm', () => {
1324
1325
let dispatch;
1326
function App() {
1327
- const [state, _dispatch, isPending] = useFormState(action, 0);
1327
+ const [state, _dispatch, isPending] = useActionState(action, 0);
1328
dispatch = _dispatch;
1329
const pending = isPending ? 'Pending ' : '';
1330
return <Text text={pending + state} />;
packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js
+1
-1
@@ -914,7 +914,7 @@ describe('ReactFlightDOMForm', () => {
914
);
915
916
function Form({action}) {
917
- const [errorMsg, dispatch] = useFormState(action, null);
917
+ const [errorMsg, dispatch] = useActionState(action, null);
918
return <form action={dispatch}>{errorMsg}</form>;
919
}
920