formik icon indicating copy to clipboard operation
formik copied to clipboard

optimzation of rerendering in formik

Open shazebCeloxis opened this issue 2 years ago • 0 comments

I have started working with Formik and i saw that the whole component is getting rendered a lot of times.So I searched for the way and found out that using Fastfield we can do so .But somehow it is giving me error and i am unable to debug it or find out why when i am jusing Fastfield it is giving error.Is there any other way to optimize ?

/> </FastField> <FastField name="email" > <TextField size="small" id="email" name="email" label="Email" value={formik.values.email} onChange={formik.handleChange} error={formik.touched.email && Boolean(formik.errors.email)} helperText={formik.touched.email && formik.errors.email} /> </FastField> <FastField name="password"> <TextField size="small" id="password" name="password" label="Password" type="password" value={formik.values.password} onChange={formik.handleChange} error={formik.touched.password && Boolean(formik.errors.password)} helperText={formik.touched.password && formik.errors.password} /> </FastField>

shazebCeloxis avatar Aug 12 '22 06:08 shazebCeloxis