github react-hook-form/react-hook-form v7.88.0
Version 7.88.0

4 hours ago

✨ Features

  • Add Error Message component (#13472)
  • Add the Error Message component for displaying validation errors from React Hook Form.

🐞 Fixes

  • Fix stale validating state after resetField() (#13735)
  • Fix errors and touched state remaining for rows removed by replace() (#13734)
  • Fix stale resolver results updating form state after reset() during handleSubmit() (#13733)
  • Fix nested registered errors being removed when trigger() targets their parent (#13732)
  • Fix resolver-reported root errors being dropped during handleSubmit() (#13731)
  • Fix parent errors being incorrectly set when trigger() targets a field with only nested resolver errors (#13730)
  • Fix useWatch compute cache not being initialized with the initial output (#13728)
  • Fix FileList being lost during flatten/expand and omit undefined values in jsonToFormData (#13725)
  • Fix schemaErrorLookup reporting nested containers as exact-name errors (#13727)
  • Fix isValidating not being recomputed after unregister() clears validating fields (#13723)
  • Fix stale resolver state updates after reset() (#13722)
  • Fix iterateFieldsByAction only breaking out of one loop level (#13718)
  • Fix stale validation types surviving setError() overwrites (#13716)
  • Fix reset() not clearing validating fields (#13714)
  • Fix remove() leaking deleted values onto surviving field-array items (#13713)
  • Fix the React Server build being unpublished (#13709)
  • Fix validateField calling setCustomValidity once per key in validate-object mode (#13707)
  • Fix useFieldArray focus behavior for checkboxes and radio buttons in appended rows (#13705)
  • Fix getFieldState reading isValidating from the supplied form state (#13704)
  • Fix unregister() stripping kept values from the submit payload (#13703)
  • Fix useFormState not re-subscribing when control changes (#13702)
  • Fix reset() keeping dirtyFields out of sync with isDirty when keepValues is enabled (#13701)
  • Fix useForm not reconciling correctly when an Activity subtree is initially hidden (#13698)
  • Fix cleared errors returning after the delayError timer fires (#13697)
  • Fix cloneObject throwing when checking Blob with instanceof (#13694)
  • Fix useFieldArray retaining stale fields after an Activity subtree reconnects (#13688)

🧹 Refactors

  • Extend _isTracked to the remaining multi-key proxy/subscribe form-state checks (#13699)
  • Extract _isTracked helper for proxy/subscribe form-state checks (#13690)
  • Remove the unused abortEarly parameter from iterateFieldsByAction (#13689)
  • Remove redundant optional chaining from clearErrors (#13696)

📝 Documentation

  • Fix useWatch compute example variable names in JSDoc (#13700)

📦 Dependencies

  • Bump joi from 18.2.1 to 18.2.5 (#13719)

❤️ Thank You

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

NewReleases is sending notifications on new releases.