v2.0.0
Breaking Changes
useField
now accepts a field level validation function as the third parameter, bumping the subscription object to the fourth parameter.
If you had this in v1
:
useField('myField', form, { value: true, active: true })
It needs to become in v2
:
useField('myField', form, undefined, { value: true, active: true })
// ^^^^^^^^^^^ ADD THIS ✅
Bug Fixes
New Features
- Field level validation (#35)
Typing Inprovements
- [TS] Make useForm Config parameterized (#34)