npm react-hook-form 6.13.0
Version 6.13.0

🌟 custom hook: useController (#3488)

import React from "react";
import { useController } from "react-hook-form";

function Input({ control, name }) {
  const {
    field,
    state: { 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)

latest releases: 7.0.0-rc.0, 7.0.0-beta.17, 7.0.0-beta.16...
2 months ago