v0.9.0
π What's new?
- New
<Formik />
component <Field />
and<Form />
helpersmapValuesToPayload
has been removed- Improved warnings and error messages
- More docs and examples
- Website in the works...
π§ Potentially breaking changes
validateOnChange
now defaults totrue
validateOnBlur
now defaults tofalse
π¨ π¨ Breaking change π¨ π¨
Formik()
has been renamedwithFormik()
. (The namedFormik
import is now used for the component and not for the HoC)
Migrating from 0.8.x to 0.9.x
The Formik()
HoC function in 0.8.x has been renamed withFormik()
in 0.9.0. Since withFormik()
is fully backwards compatible (in both plain JavaScript and TypeScript), you can safely do a search and replace and things will just work.
Before (0.8.x)
import { Formik } from 'formik'
const enhancer = Formik({ ... config ... })
...
After (0.9.x)
import { withFormik } from 'formik'
const enhancer = withFormik({ ... config ... })
...