Skip to content

Commit f09e159

Browse files
authored
Fix test after merge conflict (#28616)
Something went wrong when rebasing #28491 and renaming the hook.
1 parent 5c65b27 commit f09e159

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ describe('ReactDOMForm', () => {
13241324

13251325
let dispatch;
13261326
function App() {
1327-
const [state, _dispatch, isPending] = useFormState(action, 0);
1327+
const [state, _dispatch, isPending] = useActionState(action, 0);
13281328
dispatch = _dispatch;
13291329
const pending = isPending ? 'Pending ' : '';
13301330
return <Text text={pending + state} />;

packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMForm-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ describe('ReactFlightDOMForm', () => {
914914
);
915915

916916
function Form({action}) {
917-
const [errorMsg, dispatch] = useFormState(action, null);
917+
const [errorMsg, dispatch] = useActionState(action, null);
918918
return <form action={dispatch}>{errorMsg}</form>;
919919
}
920920

0 commit comments

Comments
 (0)