🚀 reset optional prop: keepDirtyValues (https://github.com/react-hook-form/react-hook-form/pull/8237)
reset(
{
firstName: "bill", // if firstName is dirty then the value will be retained
lastName: "luo"
},
{ keepDirtyValues: true } // keep any changed field
);
👩🔧 close https://github.com/react-hook-form/react-hook-form/issues/8324 auto-correct field array errors on user action (https://github.com/react-hook-form/react-hook-form/pull/8325)
const { append } = useFieldArray()
append({ data: '' }) // will auto correct existing field array errors if any
🐞 fix: clone objects which have functions (https://github.com/react-hook-form/react-hook-form/pull/8301) 📖 fix name of a new option in 6.12.0 change-log notes (https://github.com/react-hook-form/react-hook-form/pull/8335)
thanks to @Moshyfawn @airman5573 @TkDodo and @MasterOdin