Skip to content

Commit

Permalink
fix: 🐛 Adds errors to dependency array in Form component
Browse files Browse the repository at this point in the history
  • Loading branch information
aviemet committed Mar 24, 2023
1 parent 8e50c15 commit f342147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Form = <TForm extends NestedObject>({

const contextValueObject = useCallback((): UseFormProps<TForm> => (
{ ...form, model, method, to, submit }
), [form.data])
), [form.data, form.errors])

/**
* Submits the form. If async prop is true, submits using axios,
Expand Down

0 comments on commit f342147

Please sign in to comment.