react-hook-form

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

MIT License

Downloads
25.6M
Stars
39.4K
Committers
318

Bot releases are visible (Hide)

react-hook-form - Version 7.6.10

Published by bluebill1049 over 3 years ago

🐞 close #5379 getFieldValueAs return undefined when supplied with undefined (#5381)
🐛 fix #5382 trigger() return incorrect valid state (#5383)

react-hook-form - Version 7.6.9

Published by bluebill1049 over 3 years ago

🐛 fix #5366 inline defaultValue validation (#5376)
⌨️ improve controller defaultValue prop type (#5375)
🏋🏻‍♀️ reduce logic with value check (#5356)

react-hook-form - Version 7.6.8

Published by bluebill1049 over 3 years ago

🐞 fix #5361 remove check field logic for getFieldValues (#5363)
🐞 fix #5277 Update value when switch to enabled from initial disabled state (#5350)
📦 update typescript and remove object define in useController (#5353)

react-hook-form - Version 7.6.7

Published by bluebill1049 over 3 years ago

🐞 fix #5344 avoid re-register inputs (#5345)
👌 close #5283 useFieldArray issue with restrict mode (#5331)
🏋🏻‍♀️ save esm bundle size (#5327)
⌨️ accept readonly field path arrays (#5317)

react-hook-form - Version 7.6.6

Published by bluebill1049 over 3 years ago

🐛 fix #5300 issue with register absent deep nested object (#5302)
🕵️ close #5297 issue with get with empty path (#5298)

react-hook-form - Version 7.6.5

Published by bluebill1049 over 3 years ago

🐞 fix #5286 useWatch with fieldArray inconsistent behaviour (#5287)

react-hook-form - Version 7.6.4

Published by bluebill1049 over 3 years ago

🐞 fix #5276 setValue with null (#5278)

react-hook-form - Version 7.6.3

Published by bluebill1049 over 3 years ago

🐞 fix #5246 useFieldArray with nested arrays throws error (#5251)
🐞 fix #5262 register checkbox issue with absent register (#5263)

react-hook-form - Version 7.6.2

Published by bluebill1049 over 3 years ago

🐞 fix #5234 should render error logic for valid state (#5235)
⌨️ fix missing-register-options-generic-type (#5238)

react-hook-form - Version 7.6.1

Published by bluebill1049 over 3 years ago

🐞 fix #5229 issue with ref becomes undefined (#5233)
🐎 improve multiple useWatch performances (#5210)
🏑 close #5208 useFieldArray nested object with React.StrictMode (#5209)

react-hook-form - Version 7.6.0

Published by bluebill1049 over 3 years ago

✨ useForm register absent defaultValues (#5069)

const App = () => {
  const { register, handleSubmit } = useForm({
    defaultValues: {
      test: { firstName: 'bill', lastName: 'luo' }
    }
  })

  const onSubmit = (data) => {
     // missing registered input will be included
     console.log(data) // { test: { firstName: 'bill', lastName: 'luo' } } 
  }
  
  return (
    <form onSubmit={handleSubmit(onSubmit)}>
      <input {...register("test.firstName")} />
      <button />
    </form>
  )
}
react-hook-form - Version 7.5.3

Published by bluebill1049 over 3 years ago

🧠 close #5162 watch behavior with useFieldArray set to shouldUnregister: true (#5173)

react-hook-form - Version 7.5.2

Published by bluebill1049 over 3 years ago

⌨️ fix #5122 type issue with the message (#5123)

react-hook-form - Version 7.5.1

Published by bluebill1049 over 3 years ago

🐞 fix #5096 clearErrors with empty arg (#5098)

react-hook-form - Version 7.5.0

Published by bluebill1049 over 3 years ago

🐞 fix #5089 Correct setValue in case update value for field array name (#5092)
✨ close #3956 isSubmitSuccessful set to false when submit Promise failed (#5064)
✨ support validate with error messages (#5088)
👌 improve handleSubmit logic with data gather (#5067)
⌨️ fix #5065 useController ref type (#5066)
✨ feature: include mount attribute to register field to avoid validation for unmounted inputs (#4785)

react-hook-form - Version 7.4.2

Published by bluebill1049 over 3 years ago

🐛 fix #5053 useFormState missing name (#5058)
🐞 fix #5051 trigger return with schema (#5052)

react-hook-form - Version 7.4.1

Published by bluebill1049 over 3 years ago

🐞 fix [v7]: trigger function always returns false #5043
🐞 fix #5027 unmounted useFieldArray not remounted with existing values (#5028)

react-hook-form - Version 7.4.0

Published by bluebill1049 over 3 years ago

✨ close #4716 support name prop with useFormState to isolate re-render by name (#4722)

useFormState({
  name: 'individualInputName'
})
react-hook-form - Version 7.3.6

Published by bluebill1049 over 3 years ago

⌨️ fix #4994 typing for watch & getValues (#5005)
✌🏻 close #5001 fix unit test errors object issue
👌 fix use form trigger return type (#5000)

react-hook-form - Version 7.3.5

Published by bluebill1049 over 3 years ago

🐞 fix #4966 controller input ref gets overwrite (#4970)
🎉 close #4988 for parse input value during setValue [JS only] (#4989)
💪🏻 improve unregister to info state update (#4962)