Open cristianoccazinsp opened 2 years ago
I'm finding this too on 17.0.2
Turns out, this happens if the component unmounts shortly after mounting (probably before the captcha renders). I had a slight bug in my application where the component would render on construction and disappear instantly due to a componentDidMount
update changing the conditional logic to render it. After fixing that, the issue went away.
Yep, that's it. I was conditionally removing the component from the page after theverifyCallback
, which triggered the timeouts. I've changed the component to use visibility: hidden
for now. However, removing the component probably shouldn't throw these console errors?
After rendering a component with
<Recaptcha ...
and the page unmounts including the component, for some reason the following is printed in the console:Looks like this started happening since React v18