Skip to content

Commit

Permalink
Fix test after merge conflict (#28616)
Browse files Browse the repository at this point in the history
Something went wrong when rebasing #28491  and renaming the hook.
  • Loading branch information
kassens authored Mar 22, 2024
1 parent 5c65b27 commit f09e159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-dom/src/__tests__/ReactDOMForm-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Text text={pending + state} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ describe('ReactFlightDOMForm', () => {
);

function Form({action}) {
const [errorMsg, dispatch] = useFormState(action, null);
const [errorMsg, dispatch] = useActionState(action, null);
return <form action={dispatch}>{errorMsg}</form>;
}

Expand Down

0 comments on commit f09e159

Please sign in to comment.