Improvements
<Form>
usesReact.forwardRef
now- v1's
<FastField />
is back. It's slightly fast now since it usescontextType
instead of theconnect
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
-
getFieldProps
now only returnsFieldInputProps
instead of[FieldInputProps, FieldMetaProps]
. This makes is more useful to folks using it with justuseFormik
-
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
- Update README.md a024117
- Add migration guide (#1921) 360db2c
- Split out getFieldMeta into its own fn (#1922) 7c151b0
- Bring back FastField using contextType (#1916) c93a6d4
- Add forward ref to Form (#1920) cb3fbe5
- Fix
array.splice is not a function
errors when using array-li… (#1830) d972008 - Bump to tsdx 0.9.x (#1919) 053482a
- Adding brightwheel to users list (#1877) cbc19ee
- Fixing 60sec broken link (#1918) 5ef1d5a
- Deprecate (#1917) 9107225
- Undeprecate (#1915) c289eb1