npm react-hook-form 7.48.0
Version 7.48.0

latest releases: 7.53.2, 7.53.1, 7.53.0...
12 months ago

🧱 feature: disable prop for useForm (#10496)

const App = () => {
  const [disabled, setDisabled] = useState(false);
  const { handleSubmit } = useForm({ disabled });

  return (
    <form
      onSubmit={handleSubmit(async () => {
        setDisabled(true);
        await sleep(100);
        setDisabled(false);
      })}
    / >
  );
}

😵‍💫 fixed typo in useFormContext (#11126)
🫡 strictly manage constants and improve types (#11101)
🐞 fix #11076 disable toggle issue (#11090)
🚀 fix: Solve the issue of race condition with resolver. (#10991)
📖 docs: fix useWatch example syntax error (#11005)
📝 readme arabic version (#10992)

thanks to @Iyadchafroud @domuk-k @mehunk @ssi02014 and @tykhan

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

NewReleases is sending notifications on new releases.