Skip to content

Releases: react-hook-form/react-hook-form

Version 3.8.0

28 May 04:46
Compare
Choose a tag to compare
  • new method: getValues()

This method will return what's current values in the form.

Version 3.7.5

27 May 10:47
Compare
Choose a tag to compare

fix bug #36

  • setError bug with re-render with error
  • Remove event listener check DOM type to avoid .contains NODE issue

Version 3.7.3

24 May 12:09
Compare
Choose a tag to compare
  • fix a bug on #34 for custom input validation

Version 3.7.1

20 May 05:36
Compare
Choose a tag to compare
  • better support on an external component and server-side rendering

the example below for integrating with react-select
https://codesandbox.io/s/72j69vnk1x

Version 3.7.0

19 May 00:29
Compare
Choose a tag to compare
  • new API for set field value setValue

const setValue = (name: string, value: string | number | boolean) => void

example:

setValue('firstname', 'bill');

Version 3.6.0

18 May 23:50
Compare
Choose a tag to compare
  • support defaultValues as optional argument for useForm
const { register, handleSubmit } = useForm({
    defaultValues: {
      firstName: "bill",
      lastName: "luo",
      email: "bluebill1049@hotmail.com"
    }
});

Version 3.5.2

17 May 06:06
Compare
Choose a tag to compare
  • skip re-render after successful submit

Version 3.5.0

14 May 02:02
Compare
Choose a tag to compare
  • fix the issue around remove event listener on reset and remove an element from the DOM tree

Version 3.4.2

14 May 00:09
Compare
Choose a tag to compare
  • Fix a bug with reset should remove event listeners as well

Version 3.4.0

11 May 01:01
Compare
Choose a tag to compare
  • added setError method for a dynamic set or clear error

set an error
set('firstname', 'required')

clear an error
set('firstname', undefined)