| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2025-12-03 | 912 Bytes | |
| Version 7.68.0 source code.tar.gz | 2025-12-03 | 3.2 MB | |
| Version 7.68.0 source code.zip | 2025-12-03 | 3.5 MB | |
| Totals: 3 Items | 6.7 MB | 0 | |
š§ feat: <FormStateSubscribe /> component (#13142)
:::tsx
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 */}
<FormStateSubscribe
control={control}
name={"foo"}
render={({errors}) => <span>{errors.foo?.message}</span>}
/>
</div>
);
};
š fix: clear validation errors synchronously in reset() to fix Next.js 16 Server Actions issue (#13139) Revert "⨠fix(types): allow undefined value with async defaultValues in Contrā¦" (#13171)
thanks to @xiangnuans, @abnud11, @ntatoud & @ap0nia