Skip to content

Commit

Permalink
FIX: Fixed onReset function dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rajpatelbot committed Aug 31, 2023
1 parent 41720c2 commit 1aeaad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/formik/src/Formik.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export function useFormik<Values extends FormikValues = FormikValues>({
dispatchFn();
}
},
[props.initialErrors, props.initialStatus, props.initialTouched]
[props.initialErrors, props.initialStatus, props.initialTouched, props.onReset]
);

React.useEffect(() => {
Expand Down

0 comments on commit 1aeaad4

Please sign in to comment.