npm formik 1.4.0

latest releases: 2.4.5, 2.4.4, 2.4.3...
5 years ago

Minor Release

tl;dr

  • Massive performance improvement over 1.3.x with tiny change to isValidating and smarter internal orchestration of validation
  • Treeshaking thanks to @TrySound

About that #perf boost...

In 1.4.x isValidating will only now toggle during submission and if you manually call validateForm, otherwise it will remain false. In the past, it toggled on change and blur which caused a performance regression with certain libraries (like styled-components). Additionally, Formik internally runs validation slightly more intelligently: it will now cancel a running validation promise if a newer one is executed prior to committing the update. This can save lots and lots of renders.

Commits

Update on Formik v2

Formik v2 is coming very soon (#1063)!!! We'll start to publish canary releases next week. Stay tuned!

Don't miss a new formik release

NewReleases is sending notifications on new releases.