Performant, flexible and extensible forms library for React Hooks
Published Node.js and peer-dependency requirements.
No declared requirement changes.
2 Jul 2021 · Newest first
Last checked
Checking sources…
Showing 1 of 1 releases. Full release notes.
Signals highlight changes worth reviewing. They cannot determine whether your application is affected.
🍌 deprecated
defaultValueatuseFieldArrayas a required prop (#5636)
🍌 deprecated defaultValue at useFieldArray as a required prop (#5636)
function Test() {
const { control, register } = useForm();
const { fields, append, prepend, remove, swap, move, insert } = useFieldArray({
control,
name: "test",
});
return (
{fields.map((field, index) => (
<input
key={field.id} // important to include key with field's id
{...register(`test.${index}.value`)}
- defaultValue={field.value} // no longer required
/>
))}
);
}
👨🏻💻 fix #5787 controller type for defaultValue (#5792) 😿 fix #5777 regression on unmount defaultValue with shouldUnregister:true (#5778) 📅 close #5724 setValue skip parse date time as object (#5729) 🎮 #5712 enable controller with native validation (#5716) 🐛 fix spread non-primitive values in nested array fields (#5705) 🎪 batch single watch update (#5707) 🏟️ batch unregister inputs (#5706) 🐞 fix #5699 trigger not focusing first input with error (#5700)