Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recaptchaRef.current is null #281

Open
gharabaghi opened this issue Nov 2, 2023 · 1 comment
Open

recaptchaRef.current is null #281

gharabaghi opened this issue Nov 2, 2023 · 1 comment

Comments

@gharabaghi
Copy link

gharabaghi commented Nov 2, 2023

When in want to force the recaptcha to reload via the ref object, i get an error saying recaptchaRef.current is null.
I use this ref in console.log() before sending request (i us Formik for my form) and the object is currect, but after sending request and getting network error (maybe with re-rendering the component) i can't access recaptchaRef.current.

@AndersonHqds
Copy link

AndersonHqds commented Feb 22, 2024

Hey @gharabaghi , maybe you're using the createRef function, try to change for a useRef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants