v7.77.0
Version 7.77.0
react-hook-form
Release Notes
🥡 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(..., ) (#13461) 👝 save bundle size (#13468)
thanks to @puneetdixit200 & @dfedoryshchev