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 yarn.lock for react-fast-compare v2 d02beb8
- upgrade react-fast-compare to get bugfix (#1149) f5c6a43
- Only use isValidating during submit (#1169) 2ae0537
- Make validateForm internally cancellable (#1163) 32a69be
- Stricter typing for FormikActions resetForm method (#1166) 109324a
- Correct Field render props docs example (#1167) c5e7b18
- Correct docs examples (#1162) 13a1e12
- Remove warnings from production bundle (#1161) 731d13e
- Replace lodash.package with lodash/package (#1160) 3588f4a
- Set displayName on connected component. (#1152) 356a728
- Remove extra “the” (#1147) fbed327
- Add working with React Select v2 example (#1130) fa2ca38
- Update tutorial.md (#1128) 5779f59
- [ImgBot] Optimize images (#1142) 2802d7b
- Update validation.md (#1123) 0cc611a
- Update React, @types/react, typescript 85d15b3
- Bump react and react-dom devDeps 6526200
- Remove enzyme from FieldArray test ace898c
- Changed FieldArray.updateArrayField to use prevState (#1059) ddf1bef
- Bump docs to 1.3.2 a250d6a
- v1.3.2 82f45bf
- New size snap 784d803
Update on Formik v2
Formik v2 is coming very soon (#1063)!!! We'll start to publish canary releases next week. Stay tuned!