v2.0.1-rc.13
Pre-release
Pre-release
Improvements
- Field registration has been moved into
useField()
. This means that you can now passuseField()
a field-level validation function.const [field, meta] = useField({ name: 'boop', validate: (value) => ({ /* ... */ }) })
- Added checkbox and async submit examples to Storybook
- Added a security policy to project (see: SECURITY.md)
Bugfixes
- Fixed invariant logic around warning when Formik context is undefined
- Fixed issue when Calling API too soon will yield error
Cannot call an event handler while rendering despite using React.useEffect
(#1763)
Internal
- Switched from CircleCI to GitHub CI + GitHub Actions
Commits
- Fix useEventCallback() (#1763) bd0d599
- Switch to GitHub CI (#1758) 6e098e3
- Update typescript.md (#1753) 98fe4e3
- Bump prettier and run it on docs (#1701) dce8d31
- Update Gusto logo (#1705) 0a79500
- Add Related section with mention of TSDX (#1709) 5f94646
- Merge branch 'master' of github.com:jaredpalmer/formik 33a5815
- Fix invariant in useFormikContext (#1720) 4b4f04b
- Update typescript.md (#1708) 344b846
- Add checkbox and async submit examples to storybook b36725e
- Add field-registration to useField (#1699) cd40b87
- Docs(Overview): Add
yarn add yup
(#1687) 217a49e - Sync FieldValidator can return undefined (#1680) c0188b4
- Update arrays.md (#1635) c2ee2ff
- Docs (Nested Object): Wrap
Field
s withForm
(#1681) c63b1cf - Add 1.5.8 version to website 921ec8d
- Create SECURITY.md 1c02f01