-
Notifications
You must be signed in to change notification settings - Fork 38
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
This recaptcha instance has been already rendered #254
Comments
Here is what I got about the rendering failure loop. To be honest, everything seems to be working well even the below error.
|
Not sure what happened: The below ready's callback is triggered over and over again.
|
This issue manifests when |
Okay, did not realize that, in that way, it won't have any impact on a production build. |
@weidonglian True, but IMO it should still be fixed. StrictMode is intended to reveal potential issues, especially with future React versions/rendering modes and I think it's highlighting a legitimate problem here around side effects. |
Absolute! Agreed, I did not mean it should not be fixed, sorry for the confusion. Just before it is fixed, it won't be a blocker, since if I ignore the console output, then it seems to be working quite well. |
* chore(deps): bump react and styled-components * chore: use createRoot, StrictMode in example * fix: move timer to class field to support StrictMode Fixes #254 * chore: fix tests with react 18 * chore: remove unused enzyme-adapter-react-16 types Co-authored-by: Jakub Sarnowski <hello@jsarnowski.com>
Fixed in |
@sarneeh It still happens in React 18 in strict mode. I'm using Stack trace:
|
this issue still exists and should remain open. turning strict mode is not optimal solution |
@jasan-s No worries I know it still exists 😄 |
Hi @sarneeh , any update on this one ? I'm facing same error on next.js |
Do we have a solution for this issue? |
Hello! Thanks for a cool wrapper around ReCAPTCHA. |
@sarneeh Can this ticket be marked as a bug? Would you also mind sharing what you've tried to do to fix it / why it hasn't been fixed so that one of us might have more context in order to provide support? |
Not related to this but I had a question about invisible reaptcha. How does it work when the developer manually executes it? |
any news on this? |
Hi @sarneeh
I really like this library that does solve problems existent in other libraries, especially regarding multiple instances and react-router.
This bug only exists in React >18, I have tried React 17 which works well.
Repeat: https://codesandbox.io/s/jovial-cookies-uclvr5?file=/src/App.js
Thanks for your attention.
WD
The text was updated successfully, but these errors were encountered: