Closed finestgecko closed 1 year ago
Since the Form
component accepts generics, wrapping it with forwardRef
would break that. In your case, it's best to directly use the useForm
hook, which is now documented: https://radonis.vercel.app/docs/hooks/use-form
Update to version 2.0.4 to get access to types which were previously not exported.
Perfect, thank you!
I'm trying to protect a signup endpoint with hCaptcha (the invisible type, which appears when the submit button is pressed).
I need to use a
ref
to programmatically submit the form when the response has been received from hCaptcha.Here is the code (with some parts redacted for brevity):
And here is the error I get in the console:
The
formRef
is undefined:Is there a possible workaround for this?