DEV Community

Discussion on: No more tears, handling Forms in React using Formik, part II

Collapse
 
_ali_ profile image
ali • Edited

Hi Chris,
I tried using Formik,Yup and MaterialUi together. But it seems like there is a considerable lag when typing in the textfields (of the materialUI) present in the form. The form that I'm using contains many inputs, maybe why the lag is being caused. Any way to avoid this delay ?. Also is there a full rendering of the component, when the validation is done ?

Collapse
 
emielvangoor profile image
Emiel van Goor

My best guess is that the validation is triggered on every keystroke. You should try to disable it with

validateOnBlur={false}
validateOnChange={false}