🦭 Integrated the latest updates and fixes from Version 7
- ⚠️ Breaking change: pass input ref instead of partial (#12773)
- ⚠️ Breaking change: rename
useFieldArrayidtokeykeyNameprops removed foruseFieldArray
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 />renamenamestoname - ⚠️ Breaking change:
watchcall back api removed - ⚠️ Breaking change:
setValueno longer direct update useFieldArray, instead usereplaceapi
https://react-hook-form.com/docs/useform/setvalue
npm i react-hook-form@8.0.0-beta.1