yarn react-hook-form 8.0.0-beta.1
Version v8.0.0-beta.1

latest releases: 8.0.0-beta.2, 7.76.0, 7.75.0...
4 months ago

🦭 Integrated the latest updates and fixes from Version 7

  • ⚠️ Breaking change: pass input ref instead of partial (#12773)
  • ⚠️ Breaking change: rename useFieldArray
    • id to key
    • keyName props removed for useFieldArray
const { fields, append } =useFieldArray()

// data will be part of the submission 
append({
  key: 'key',  // does not affect render key
  id: 'key',  // does not affect render key
})

field[0].key // will still be uniq id for re-render
  • ⚠️ Breaking change: rename <Watch /> rename names to name
  • ⚠️ Breaking change: watch call back api removed
  • ⚠️ Breaking change: setValue no longer direct update useFieldArray, instead use replace api
    https://react-hook-form.com/docs/useform/setvalue
npm i react-hook-form@8.0.0-beta.1

Don't miss a new react-hook-form release

NewReleases is sending notifications on new releases.