npm react-hook-form 7.77.0
Version 7.77.0

4 hours ago

🥡 feat: add resetDefaultValues API (#13427)

https://react-hook-form.com/docs/useform/resetdefaultvalues

const { resetDefaultValues } = useForm();

resetDefaultValues(currentValues);

🐚 harden get() against prototype-path traversal (proto / constructor / prototype) (#13479)
🐞 fix FieldArray errors overriding nested fields (#13476)
🐞 fix inconsistent reset({}) behavior requiring double-call to take effect (#13473)
🐞 fix: preserve values with shouldUnregister (#13464)
🐞 fix stale isDirty in subscribe payload after reset(..., { keepValues: true }) (#13461)
👝 save bundle size (#13468)

thanks to @puneetdixit200 & @dfedoryshchev

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

NewReleases is sending notifications on new releases.