github jaredpalmer/formik formik@3.0.0-next.0

latest releases: formik@2.4.6, formik-native@2.1.29, formik@2.4.5...
pre-release3 years ago

Major Changes

  • 5efd691 #2255 Thanks @jaredpalmer! - Added parse, format, and formatOnBlur to getFieldProps options, <Field>, and useField. Going forward, there is no reason aside from backwards compatibility to continue using either formikProps.handleChange or formikProps.handleBlur. These are both inferior to the onChange and onBlur functions returned by getFieldProps() which the ability to utilize parse, format, and formatOnBlur.

    Breaking Change
    Instead of just passing back formikProps.handleChange and formikProps.handleBlur, the onChange and onBlur handlers returned by getFieldProps() (and thus useField/<Field>) are now scoped to the field already and now accept either a React Synthetic event or a value. In the past, you could need to curry the handler with the string name of field to get this functionality. This likely doesn't impact many users, but it is technically breaking nonetheless.

Don't miss a new formik release

NewReleases is sending notifications on new releases.