diff --git a/src/Formik.tsx b/src/Formik.tsx index 32be0e1d1..fe2863c8b 100755 --- a/src/Formik.tsx +++ b/src/Formik.tsx @@ -348,11 +348,11 @@ export function useFormik({ } ); - // React.useEffect(() => { - // if (validateOnMount && isMounted.current === true) { - // validateFormWithLowPriority(props.initialValues); - // } - // }, [props.initialValues, validateFormWithLowPriority]); + React.useEffect(() => { + if (validateOnMount && isMounted.current === true) { + validateFormWithLowPriority(props.initialValues); + } + }, [props.initialValues, validateOnMount, validateFormWithLowPriority]); const resetForm = React.useCallback( (nextState?: Partial>) => {