DEV Community

Discussion on: Formik VS React Hook Form Part I

Collapse
 
peacechen profile image
Peace Chen

People say that Formik slows down on complex forms. Anyone else experience that?

Collapse
 
doaashafik profile image
Doaa Shafik • Edited

Thanks For Your Comment,
I didn't face it before but I test it with 30 fields and it works fine.
to test :
1- check that there are no changes that force rerender like dispatch action or update state.
2- check the version of Formik especially for FastField API, it works in version 2.2.6.

Collapse
 
valerii15298 profile image
Valerii Petryniak • Edited

Hello. Just few days ago faced problem. I am using big form with 50+ nested fields and when I type, - it very slow. FastField doesn't help. Developers of Formik working on next version to fix this problem(unnecessary re-renders). There is issue with Formik in GitHub github.com/formium/formik/issues/342
For me I decided to try react-hook-form because heard that it has better performance with large forms(it uses uncontrolled components, and has much less rerenders).