Fixes
- Fixed issue #13250 with
booleans_as_integersbehavior
Unclaimed project
Are you a maintainer of react-hook-form? Claim this project to take control of your public changelog and roadmap.
Changelog
π React Hooks for form state management and validation (Web + React Native)
Last updated 4 days ago
Fixes
booleans_as_integers behaviorβ‘ perf: memoize FormProvider context value to prevent unnecessary rerenders (#13235) π perf: separate control context to prevent unnecessary rerenders (#13234) π fix: update isValid when field disabled state changes (#13231) π chore: optimize bundle size via safe terser options (#13243) (#13244)
thanks to @kamja44, @a28689604 & @newsiberian
π¦ Integrated the latest updates and fixes from Version 7
useFieldArray
id to keykeyName props removed for useFieldArrayconst { fields, append } =useFieldArray()
// data will be part of the submission
append(...
β watch type improvement (#13228) π fix: prevent field array ghost elements with keepDirtyValues (#13188) π fix: improve invalid date handling in deepEqual and validation (#13230) π fix(types): handle branded types correctly in DeepPartial (#13222) π fix native validation focus issue (#13220) π change spread operator to set name with depricated names prop, then override with new name pro...
π feat: align API with useWatch (#13192) π€¦π»ββοΈ chore: update @deprecated names prop on (#13198) π₯ chore: safely call function methods on elements (#13190) πͺ chore: cve-2025-67779 (#13196) πͺ chore: cve-2025-55184 & cve-2025-55183 (#13194) πͺ chore: CVE-2025-55182 Critical RCE vulnerabilty (#13175) π¬ test: add regression tests for #12837 and #13136 (#13187) π fix(r...
β¬οΈ Promoted v8 from alpha to beta stability π¦ Integrated the latest updates and fixes from Version 7
npm i react-hook-form@8.0.0-beta.0
π§ feat: <FormStateSubscribe /> component (#13142)
import { useForm, FormStateSubscribe } from 'react-hook-form';
const App = () => {
const { register, control } = useForm();
return (
<div>
<form>
<input {...register('foo')} />
<input {...register('bar')} />
</form>
{/* re-render only when formState of `foo` changes */}
<Fo...
π― feat: add exact to useController props (#13154)
useForm({
defaultValues: {
user: {
name: ''
}
}
})
<Controller control={control} name="user" exact={false} /> // subscribe to all user object
β¨ fix(types): allow undefined value with async defaultValues in Controller (#13160) π fix(types): correct PathValueImpl type inference (#13150)
thanks to @a...
β‘ perf: reduce redundant property access in getDirtyFields (#13146) π fix(createFormControl): skip setValid() during batch array updates (#13140) π fix(useForm): recompute isValid after reset when values update asynchronously (#13126) π fix(deepEqual): handle NaN comparison correctly using Object.is (#13120)
thanks to @kimtaejin3, @a28689604 & @WuMingDao
π₯ feat: make useWatch and useController to react to name change (#13070)
π fix: watch() returning undefined immediately after reset() - Issue #13088 (#13091)
π fix <Watch />: correct render function parameter typing (#13108)
thanks to @aspirisen, @scato3, @dusan233 & @zoldyzdk
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
Your own personal AI assistant. Any OS. Any Platform. The lobster way. π¦
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.