question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

recaptchaOptions.removeOnUnmount appears broken

See original GitHub issue

I have the window.recaptchaOptions.removeOnUnmount flag set to true, but after React unmounts the component (I navigate to different screen without recaptcha component) the recaptcha <script> tag is still in the DOM.

This does not allow me to change the recaptcha language (e.g. when user updated profile) because the script has hl (lang) URL param in it.

😦

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dozoischcommented, Dec 24, 2018

@wunderfx although, that’s a little bit dangerous. Given that something like google uses the same windows.google for all their scripts, so you need to remove only the on that are for that specific script.

1reaction
codeflncommented, Dec 16, 2018

Any news?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found