Packages

react-hook-form

7.91.0 · 23 Oct 2026MIT42M / weekRepositoryHomepagenpmAtom feed

Your version

6.8.0

9 Sep 2020Where it was published

6.15.8 is the newest release of 6.x.

In short

2 new4 changed

Release note

Added

  • New formState isSubmitSuccessful to indicate successful submission

  • setError now support focus on the actual input

setError('test', { message: 'This is required', shouldFocus: true });

Changed

  • With shouldUnregister:false defaultValues data will be part of the submission data

  • With shouldUnregister:false conditional field is going to work with useFieldArray

  • setValue now support useFieldArray

- setValue('test', 'data')
+ setValue('test', [{ test: '123' }]) // make it work for useFieldArray and target a field array key
  • Remove exact config at clearErrors

- clearErrors('test', { exact: false })
+ clearErrors('test') // does it automatically in the lib