🎉 feature request: #6879 useFieldArray
support rules
props (#8102)
useFieldArray({
name: 'test',
rules: {
required: true,
minLength: 2,
maxLength: 10,
validate: (fieldArrayValues) => {
if (fieldArrayValues[2].title === 'test') {
return 'validate Error'
}
}
}
})
errors?.test?.root?.message // access root level errors
Note: Related context and poll for error message naming: #8625
🐞 fix #8584: handle nullable nested properties (#8699)
🆎 close #8689 fix type inconsistency with control (#8691)
🐞 fix native form reset isn't executed if first fieldReference isn't a HTMLElement (#8678)
🐞 fix useFieldArray action type incorrectness (#8660)
🚔 close #8653 when useFormContext provide no generic for type check (#8654)
🛰 useFormContext include type tests (#8656)
🤣 fix typo in useForm.ts (#8645)
📚 README Helper / Sponsor Generation Script / Workflow (#8676)
thanks to @@ANTARES-KOR @zandowc @@alexviar @ElectronicsArchiver and @kyoto7250