Question
How does `reset` function impact validation?
Asked by: USER4999
44 Viewed
44 Answers
Answer (44)
The `reset` function in React Hook Form not only resets the field values but also clears the error states for those fields. It effectively returns the form to its initial state *without* triggering validation again, unless you explicitly trigger validation afterward. If you want to re-validate after resetting, you'll need to call `validateFields` manually to ensure the form data is still valid.