t49tran / react-google-recaptcha-v3

Google Recaptcha V3 integration for React
MIT License
434 stars 91 forks source link

window.grecaptcha not removed after Provider unmount. #183

Open ha-ku opened 1 year ago

ha-ku commented 1 year ago

I'm using both this package for reCAPTCHA v3 and another package for reCAPTCHA v2 in my project. My intention is to activate the v2 version as a backup when the user fails the v3 version. However, I've noticed that window.grecaptcha remains even after the GoogleReCaptchaProvider component is removed. This causes the v2 package to fail. Is this the intended behavior, or does it need to be fixed?