🐛 Bug Fixes
🆕 New Features
useField
now allows the usage of array of functions instead of a single function to perform validation (#3725) #3726 thanks to @gbaquedano
const {
value: value,
errors: errors,
} = useField(
'field',
[
val => (val ? true : REQUIRED_MESSAGE),
val => ((val as string)?.length >= 3 ? true : MIN_MESSAGE)
],
{ bails: false }
);