Download Latest Version Version 7.68.0 source code.tar.gz (3.2 MB)
Email in envelope

Get an email when there's a new version of React Hook Form

Home / v7.68.0
Name Modified Size InfoDownloads / 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

Source: README.md, updated 2025-12-03