Do not access any of the properties inside the object control
directly. It's for internal usage only.
Examples of incorrect code for this rule:
function Component() {
const { control } = useForm();
console.log(control.defaultValuesRef);
// ...
}
Examples of correct code for this rule:
function Component() {
const { control } = useForm();
const { fields } = useFieldArray({ control, name: "test" });
// ...
}
NA
NA