react-hook-form
7.91.0 · 23 Oct 2026MIT42M / weekRepositoryHomepagenpmAtom feed
Your version
6.15.8 is the newest release of 6.x.
In short
2 new4 changed
Release note
Added
New formState
isSubmitSuccessfulto indicate successful submissionsetErrornow support focus on the actual input
setError('test', { message: 'This is required', shouldFocus: true });Changed
With
shouldUnregister:falsedefaultValuesdata will be part of the submission dataWith
shouldUnregister:falseconditional field is going to work withuseFieldArraysetValuenow supportuseFieldArray
- setValue('test', 'data')
+ setValue('test', [{ test: '123' }]) // make it work for useFieldArray and target a field array keyRemove
exactconfig at clearErrors
- clearErrors('test', { exact: false })
+ clearErrors('test') // does it automatically in the lib