npm formik 2.0.1-rc.15

latest releases: 2.4.6, 2.4.5, 2.4.4...
4 years ago

Improvements

  • <Form> uses React.forwardRef now
  • v1's <FastField /> is back. It's slightly fast now since it uses contextType instead of the connect HoC.
  • FormikContext is exported

Buggos

  • Fixed array.splice is not a function errors when using array-like item in FieldArray

Breaking Changes from 2.0.1-rc.14

  • Deprecate (#1917) 9107225

  • Undeprecate (#1915) c289eb1

  • getFieldProps now only returns FieldInputProps instead of [FieldInputProps, FieldMetaProps]. This makes is more useful to folks using it with just useFormik

  • getFieldMeta(name: string) has been added to formik bag. This lets you get this object back for a given field.

    export interface FieldMetaProps<Value> {
     /** Value of the field */
     value: Value;
     /** Error message of the field */
     error?: string;
     /** Has the field been visited? */
     touched: boolean;
     /** Initial value of the field */
     initialValue?: Value;
     /** Initial touched state of the field */
     initialTouched: boolean;
     /** Initial error message of the field */
     initialError?: string;
    }

Commits

v2.0.1-rc.14...v2.0.1-rc.15

Don't miss a new formik release

NewReleases is sending notifications on new releases.