Unfortunately, I can't share the source code where I experienced this bug. It's a private repo. I can show before/after videos though if needed.
The root cause is that the component calls this._renderGrecaptcha() in componentDidMount, before render can run. This change was sufficient to resolve the issue for me
EDIT: I forgot about specs. I'll try to fix them tomorrow
I was still having this issue: https://github.com/appleboy/react-recaptcha/issues/181 despite using this solution: https://github.com/appleboy/react-recaptcha/issues/181#issuecomment-280800414
Unfortunately, I can't share the source code where I experienced this bug. It's a private repo. I can show before/after videos though if needed.
The root cause is that the component calls
this._renderGrecaptcha()
incomponentDidMount
, beforerender
can run. This change was sufficient to resolve the issue for meEDIT: I forgot about specs. I'll try to fix them tomorrow