recaptchaOptions.removeOnUnmount appears broken
See original GitHub issueI 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:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
Any news?