react-hook-form v6.13.0 Release Notes
Release Date: 2020-12-11 // over 3 years ago-
🍱 🌟 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
withappend
deep clone object (#3614)
🍱 🐞 fix #3617 remove fields from append dep (#3618)
👨🏻💻 close #3628reset
inconsistency with differentshouldUnregister
mode (#3633)
🍱 ⌨️ fix #3593 Map type for NestedValue (#3616)
😿 #1680 fix unmount warning on dev build (#3645)
🍱 👻 fix #3651setValue
withshouldUnregister:false
with deep clone object (#3652)
🍱 🤖 change from deepClone to shallowClone with defaultValues's reset (#3607)