react-hook-form
7.91.0 · 23 Oct 2026MIT42M / weekRepositoryHomepagenpmAtom feed
595 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
7.22.1
15 Dec 2021Reading the note…
7.22.0
13 Dec 2021Browser native reset API will no longer be invoked when
resetprovided with value
Changed
Browser native reset API will no longer be invoked when
resetprovided with value
const onSubmit = (data) => {}; React.useEffect(() => { if (formState.isSubmitSuccessful) { reset({ something: '' }); } }, [formState, reset]); handleSubmit(onSubmit);to
const onSubmit = (data) => { setSubmittedData(data); reset(data); // no longer need to have useEffect }; handleSubmit(onSubmit);7.21.2
10 Dec 2021Reading the note…
7.21.1
10 Dec 2021Reading the note…
7.21.0
6 Dec 2021shouldUseNativeValidationwill pass down validation props both at client and server render
7.20.5
30 Nov 2021Reading the note…
7.20.4
26 Nov 2021Reading the note…
7.20.3
26 Nov 2021Reading the note…
7.20.2
20 Nov 2021Reading the note…
7.20.1
19 Nov 2021Reading the note…
7.20.0
19 Nov 2021New
exactprop foruseWatchNew
exactprop foruseFormStateuseWatchsubscription will occurred atuseEffectinstead beforerender
7.19.5
12 Nov 2021Reading the note…
7.19.4
11 Nov 2021Reading the note…
7.19.3
10 Nov 2021Reading the note…
7.19.2
10 Nov 2021Reading the note…
7.19.1
7 Nov 2021Reading the note…
7.19.0
5 Nov 2021New
resetFieldAPIuseControllerwill return shallow clone value for the following data type on each rerender
7.18.1
1 Nov 2021Reading the note…
7.18.0
27 Oct 2021Bring back
FieldPathWithValueSchema errors parent object look up
7.17.5
20 Oct 2021Reading the note…
7.17.4
14 Oct 2021Reading the note…
7.17.3
13 Oct 2021Reading the note…
7.17.2
8 Oct 2021Reading the note…
7.17.1
5 Oct 2021Reading the note…
7.17.0
2 Oct 2021New type
FieldPathWithValueto improve generic components type support
7.16.2
30 Sep 2021Reading the note…
7.16.1
27 Sep 2021Reading the note…
7.16.0
24 Sep 2021registerallowed pass customonChangeandonBlur
7.15.4
19 Sep 2021Reading the note…
7.15.3
12 Sep 2021Reading the note…
7.15.2
9 Sep 2021Reading the note…
7.15.1
7 Sep 2021Reading the note…
7.15.0
5 Sep 2021useFieldArraynew methodreplace()Improved to not map types defined with
interface.
7.14.2
31 Aug 2021Reading the note…
7.14.1
30 Aug 2021Reading the note…
7.14.0
27 Aug 2021registeradd dependent validation
7.13.0
22 Aug 2021Trigger will enable object name trigger and field array name trigger
Added a
disabledprop as an option to toggle input disable attributeRegister will be able to seek input DOM reference through the
refcallback
Added
TriggerTrigger will enable object name trigger and field array name trigger
useFieldArray({ name: 'test' }); trigger('name'); // will trigger the whole field array to validateregisterAdded a
disabledprop as an option to toggle input disable attributeRegister will be able to seek input DOM reference through the
refcallback
register('test', { disabled: true }) // will set value to undefined and pass disabled down to the input attribute <div {...register('test')}> <input name="test" /> // this input will be registered </div>useWatchAdded
disabledprop to toggle the state subscription.
useWatch({ disabled: true }); // you toggle the subscriptionuseFormStateAdded
disabledprop to toggle the state subscription.
useFormState({ disabled: true }); // you toggle the subscriptionsetValueAllow set value for non-registered inputs include nested object and array field.
<input {...register('test.0.firstName')} /> setValue('test', [{ firstName: 'bill' }, {firstName: 'kotaro}, {firstName: 'joris'}]) // this will works7.12.2
30 Jul 2021Reading the note…
7.12.1
27 Jul 2021Reading the note…
7.12.0
24 Jul 2021New
useFormconfigdelayError
7.11.1
17 Jul 2021Reading the note…
7.11.0
12 Jul 2021updatemethod to update an field array inputs
7.10.1
5 Jul 2021Reading the note…
7.10.0
2 Jul 2021defaultValueis no longer a required prop for register input withuseFieldArray
7.9.0
19 Jun 2021New config at
useFormto enabled native browser validation
7.8.8
16 Jun 2021Reading the note…
7.8.7
16 Jun 2021Reading the note…
7.8.6
15 Jun 2021Reading the note…
7.8.5
15 Jun 2021Reading the note…
7.8.4
11 Jun 2021Reading the note…