It depends when and where you want to retrieve the form data ? In my example, you don't need to. You get access to the data in the submit handler, once the validation process is completed. If you need to listen to changes of a specific value, you can use hook-form's watch, as mentionned in the article. Also, at any time, you can use getValues: react-hook-form.com/api/useform/ge... (pay attention to the rules)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It depends when and where you want to retrieve the form data ? In my example, you don't need to. You get access to the data in the submit handler, once the validation process is completed. If you need to listen to changes of a specific value, you can use hook-form's watch, as mentionned in the article. Also, at any time, you can use
getValues
: react-hook-form.com/api/useform/ge... (pay attention to the rules)