Socket
Socket
Sign inDemoInstall

react-hook-form

Package Overview
Dependencies
3
Maintainers
1
Versions
1025
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
103Next

7.49.0

Diff

Changelog

Source

[7.49.0] - 2023-12-10

Added

  • add reactive errors prop at useForm
useForm({
  errors, // Server errors
});
bluebill1049
published 7.48.2 •

bluebill1049
published 7.48.1 •

bluebill1049
published 7.48.0 •

Changelog

Source

[7.48.0] - 2023-11-05

Added

  • added new disabled prop for useForm to disable the entire form
const App = () => {
  const [disabled, setDisabled] = useState(false);
  const { handleSubmit } = useForm({ disabled });

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

Changelog

Source

[7.47.0] - 2023-10-02

Added

  • reset api with keepIsSubmitSuccessful option, keep successfully submitted form state.
<Form
  onSubmit={() => {
    reset(formValues, {
      keepIsSubmitSuccessful: true,
    });
  }}
/>
bluebill1049
published 7.46.2 •

bluebill1049
published 7.46.1 •

bluebill1049
published 7.46.0 •

Changelog

Source

[7.46.0] - 2023-09-03

Added

  • Controller disabled prop
const [disabled, setDisabled] = useState(false);
useController({
  disabled,
});
  • Trigger passed names to construct resolver options
  • Add exact option for array name in useWatch

Changed

  • Update isDirty when setting disabled in register

Fixed

  • Prevent reset argument mutation
bluebill1049
published 7.46.0-next.0 •

bluebill1049
published 7.45.4 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc