Skip to content

Commit

Permalink
fix: keep onInvalidSubmit up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
airjp73 committed Aug 6, 2024
1 parent 23f8bd4 commit c2915d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/useForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export function useForm<
}
});
},
onInvalidSubmit,
onSubmitFailure,
});
}, [
Expand All @@ -230,6 +231,7 @@ export function useForm<
form.__store__.store,
resetAfterSubmit,
form.__store__.formRef,
onInvalidSubmit,
]);

useEffect(() => {
Expand Down

0 comments on commit c2915d5

Please sign in to comment.