Skip to content

Commit

Permalink
Fix test after merge conflict (facebook#28616)
Browse files Browse the repository at this point in the history
Something went wrong when rebasing facebook#28491  and renaming the hook.
  • Loading branch information
kassens authored and AndyPengc12 committed Apr 15, 2024
1 parent a609503 commit e04eaff
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 e04eaff

Please sign in to comment.