🌟 custom hook: useController (#3488)
import React from "react";
import { useController } from "react-hook-form";
function Input({ control, name }) {
const {
field,
meta: { invalid, isTouched, isDirty },
} = useController({
name,
control,
rules: { required: true },
});
return <input {...field} />;
}
👨🏻💻 fix #3613 shouldUnregister:false
with append
deep clone object (#3614)
🐞 fix #3617 remove fields from append dep (#3618)
👨🏻💻 close #3628 reset
inconsistency with different shouldUnregister
mode (#3633)
⌨️ fix #3593 Map type for NestedValue (#3616)
😿 #1680 fix unmount warning on dev build (#3645)
👻 fix #3651 setValue
with shouldUnregister:false
with deep clone object (#3652)
🤖 change from deepClone to shallowClone with defaultValues's reset (#3607)