From c2915d5fae9eb4e8b2e6b85a4d11ad33f65459b9 Mon Sep 17 00:00:00 2001 From: Aaron Pettengill Date: Tue, 6 Aug 2024 16:58:12 -0400 Subject: [PATCH] fix: keep onInvalidSubmit up-to-date --- packages/react/src/useForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react/src/useForm.tsx b/packages/react/src/useForm.tsx index bdeead37..9cffeff7 100644 --- a/packages/react/src/useForm.tsx +++ b/packages/react/src/useForm.tsx @@ -219,6 +219,7 @@ export function useForm< } }); }, + onInvalidSubmit, onSubmitFailure, }); }, [ @@ -230,6 +231,7 @@ export function useForm< form.__store__.store, resetAfterSubmit, form.__store__.formRef, + onInvalidSubmit, ]); useEffect(() => {