github react-hook-form/react-hook-form v7.31.0
Version 7.31.0

latest releases: v7.51.4, v7.51.3, v7.51.2...
2 years ago

🚀 reset optional prop: keepDirtyValues (#8237)

reset(
  {
    firstName: "bill", // if firstName is dirty then the value will be retained
    lastName: "luo"
  },
  { keepDirtyValues: true } // keep any changed field
);

👩‍🔧 close #8324 auto-correct field array errors on user action (#8325)

const { append } = useFieldArray()

append({ data: '' }) // will auto correct existing field array errors if any

🐞 fix: clone objects which have functions (#8301)
📖 fix name of a new option in 6.12.0 change-log notes (#8335)

thanks to @Moshyfawn @airman5573 @TkDodo and @MasterOdin

Don't miss a new react-hook-form release

NewReleases is sending notifications on new releases.