react-hook-form

📋 React Hooks for form state management and validation (Web + React Native)

MIT License

Downloads
25.6M
Stars
39.4K
Committers
318
react-hook-form - Version 3.11.2

Published by bluebill1049 over 5 years ago

  • Revert "feature: not add input listener onBlur modes. #74 (break watch mode)
  • fix a bug when the watch API
react-hook-form - Version 3.11.0

Published by bluebill1049 over 5 years ago

not add input listener onBlur modes. (#74)
Support Nested Object model #73

  • Array Syntax firstName[0]
  • Nested Array Syntax person[0].numbers[0]
  • Object Syntax name.first
  • Nested Object Syntax person.name.first
  • Array of Objects Syntax person[0].firstName
  • Array of Objects with Nested Object person[0].name.first
react-hook-form - Version 3.10.5

Published by bluebill1049 over 5 years ago

react-hook-form - Version 3.10.4

Published by bluebill1049 over 5 years ago

  • only update submitting references after callback (#71)
  • For Custom fields (those with no type), allow defaults to be set (#67)
  • Avoid recreation of register of register function via useCallback (#68)
react-hook-form - Version 3.10.3

Published by bluebill1049 over 5 years ago

react-hook-form - Version 3.10.2

Published by bluebill1049 over 5 years ago

  • patch type for tiggerValidation
react-hook-form - Version 3.10.1

Published by bluebill1049 over 5 years ago

  • patch on default value for triggerValidation
    forceValidation to be false
react-hook-form - Version 3.10.0

Published by bluebill1049 over 5 years ago

  • change trigger to triggerValidation

and accept the following argument

{
    name, // name of the input
    value, // value of input
    forceValidation = true, // force validation `onSubmit` mode before hide the submit button
}
react-hook-form - Version 3.9.0

Published by bluebill1049 over 5 years ago

  • trigger you can start to manually trigger and validation for a particular field. eg:
<input name="test" ref={register({ required: true }) } />
trigger('test'); // will trigger the validation of the field
  • validationFields you can control which fields to validate per page
const { register } = useForm({
  validationFeilds: ['test']
})
react-hook-form - Version 3.8.9

Published by bluebill1049 over 5 years ago

react-hook-form - Version 3.8.8

Published by bluebill1049 over 5 years ago

react-hook-form - Version 3.8.7

Published by bluebill1049 over 5 years ago

  • revert back optimized code due to the bug report

https://github.com/bluebill1049/react-hook-form/issues/46

react-hook-form - Version 3.8.6

Published by bluebill1049 over 5 years ago

  • continues imporve types
react-hook-form - Version 3.8.5

Published by bluebill1049 over 5 years ago

  • running reset() error when not found will be silenced and throw a console warning.
react-hook-form - Version 3.8.4

Published by bluebill1049 over 5 years ago

  • fix bug with touched when setValue
react-hook-form - Version 3.8.3

Published by bluebill1049 over 5 years ago

  • fix bug with filter undefined errors
react-hook-form - Version 3.8.2

Published by bluebill1049 over 5 years ago

  • update on NPM ignore
  • improve performance under onSubmit mode
react-hook-form - Version 3.8.1

Published by bluebill1049 over 5 years ago

  • fix a bug with setValue on radio
react-hook-form - Version 3.8.0

Published by bluebill1049 over 5 years ago

  • new method: getValues()

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

react-hook-form - Version 3.7.5

Published by bluebill1049 over 5 years ago

fix bug https://github.com/bluebill1049/react-hook-form/issues/36

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