chore(deps): bump react-hook-form from 7.82.0 to 7.86.0
Brought to you by:
ashish-forge
Originally created by: dependabot[bot]
Bumps react-hook-form from 7.82.0 to 7.86.0.
Sourced from react-hook-form's releases.
Version 7.86.0
✨ Features
- Add type-safe
getErrorsmethod. (#13639](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13639">/issues/13639), #12853](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/12853">/issues/12853))🐞 Fixes
- Fix
useWatchreturning stale values when the watched name changes tonull. (#13668](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13668">/issues/13668))- Fix
unregisterkeepDirtybehavior. (#13669](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13669">/issues/13669))- Fix
setValuesfor fields registered under object or array values. (#13667](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13667">/issues/13667))- Fix
Controllernotifications for field array item roots. (#13665](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13665">/issues/13665))- Fix validation state checks. (#13661](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13661">/issues/13661))
- Fix
setCustomValiditywithcriteriaMode: 'all'. (#13655](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13655">/issues/13655))- Fix
File,Blob, andFileListhandling inflatten. (#13652](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13652">/issues/13652))- Fix stale errors and touched state after updating a field array item. (#13650](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13650">/issues/13650))
- Fix stale field names leaking into persisted
formState. (#13649](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13649">/issues/13649))🚀 Performance
- Improve
createFormControlperformance. (#13648](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13648">/issues/13648))- Improve
cloneObjectperformance.- Avoid unnecessary value cloning in
unregister. (#13662](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13662">/issues/13662))- Improve performance in
onChange-heavy workloads.🧹 Chores & Refactoring
- Remove unnecessary
anyusage. (#13660](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13660">/issues/13660))- Improve TypeScript handling around checkbox values. (#13659](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13659">/issues/13659))
- Improve UUID generation. (#13658](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13658">/issues/13658))
- Clean up repository structure and APIs. (#13657](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13657">/issues/13657))
- Remove unreachable revalidation logic in
useFieldArray. (#13654](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13654">/issues/13654))Thanks to
@dfedoryshchev,@zigzagdev,@official-burak,@Jaybhade,@candymask0712, and@bluebill1049for their contributions! 🎉Version 7.85.0
✨ Improvements
- support React
<Activity />(#13633](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13633">/issues/13633))🐞 Fixes
- fix min/max validation being skipped for
valueAsDatefields (#13646](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13646">/issues/13646))- fix field array root errors being lost during
append,prepend,insert, andremove(#13645](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13645">/issues/13645))- fix stale renders recreating field array paths after field array actions (#13644](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13644">/issues/13644))
- fix
useWatchpreferring formdefaultValuesover the hook's owndefaultValue(#13635](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13635">/issues/13635))- fix
setValueemitting duplicatevaluesstate notifications (#13637](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13637">/issues/13637))- fix TypeScript
getFieldStateerror resolution for field paths (#13632](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13632">/issues/13632))🏗️ Chores
... (truncated)
Sourced from react-hook-form's changelog.
[7.86.0] - 2026-08-22
Added
- Type-safe
getErrorsmethodPerformance
- Improve
createFormControl- Improve clone object check
- Avoid cloning values in
unregisterwithout subscribersFixed
- Field array update leaving stale errors and touched state at the updated index
flattendiscardingFileandBlobvalues instead of treating them as leaf nodesvalidateFieldnot passing the field error tosetCustomValiditywhencriteriaModeisallhasValidationtreating falsy but valid values (min: 0,max: 0,minLength: 0,maxLength: 0,required: '') as no validationsetValuetargeting a nested leaf not notifying aControllerregistered on a field array item rootsetValuesnot updating fields registered under an object or array valueuseWatchreturning a stale value on name change when the new value isnullunregisterinvertingkeepDirtywhen broadcastingisDirty[7.85.0] - 2026-08-08
Added
- Support
<Activity />Fixed
getFieldStateerror resolution from a field pathuseWatchdiscardinguseForm({ defaultValues })in favor of its owndefaultValuebefore the form mountssetValueemitting a duplicatevaluesstate notification for fields without a native input ref- Stale render re-creating a field array path vacated by an array action
useFieldArrayroot-level error (errors.name.root) being lost onappend/prepend/insert/removemin/maxvalidation being skipped forvalueAsDatefields[7.84.0] - 2026-08-01
Improvements
handleSubmitreturns the typed result of theonValidcallback instead of discarding it<Form />supports a function-basedaction(Server Action style) in addition to URL-string actions- Improve performance and reduce bundle size
Fixed
reset()withresetOptions.keepDirtyValuesfreezing clean sibling fields in a nested object when another field in that object is dirty- Restore missing
FieldArrayandFormStatetype exports
... (truncated)
33860b4 7.86.0e5b117b 🐞 fix(unregister): keepDirty inverted when broadcasting isDirty (#13669](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13669">/issues/13669))64ec9bc 🐞 fix: useWatch returns stale value on name change when new value is null (#1](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/1">/issues/1)...dead471 🦌 fix(setValues): update fields registered under an object or array value (#1](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/1">/issues/1)...1ca83d2 🪖 close #13664](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13664">/issues/13664) notify a Controller registered on a field array item root when...06e4efd 🚚 perf: avoid cloning values in unregister without subscribers (#13662](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13662">/issues/13662))9b7af71 🐞 fix has validation check issue (#13661](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13661">/issues/13661))51e3309 🗜️ chore: remove any (#13660](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13660">/issues/13660))1c5ff08 🤖 fix ts error ignore on getCheckboxValues (#13659](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13659">/issues/13659))7223514 🧛 improve uuid function (#13658](https://github.com/href="https://redirect.github.com/react-hook-form/react-hook-form/issues/13658">/issues/13658))Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.