{"action":"created","issue":{"url":"https://api.github.com/repos/dozoisch/react-google-recaptcha/issues/116","repository_url":"https://api.github.com/repos/dozoisch/react-google-recaptcha","labels_url":"https://api.github.com/repos/dozoisch/react-google-recaptcha/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/dozoisch/react-google-recaptcha/issues/116/comments","events_url":"https://api.github.com/repos/dozoisch/react-google-recaptcha/issues/116/events","html_url":"https://github.com/dozoisch/react-google-recaptcha/issues/116","id":369573174,"node_id":"MDU6SXNzdWUzNjk1NzMxNzQ=","number":116,"title":"recaptchaOptions.removeOnUnmount appears broken","user":{"login":"MiroslavPetrik","id":38855190,"node_id":"MDQ6VXNlcjM4ODU1MTkw","avatar_url":"https://avatars2.githubusercontent.com/u/38855190?v=4","gravatar_id":"","url":"https://api.github.com/users/MiroslavPetrik","html_url":"https://github.com/MiroslavPetrik","followers_url":"https://api.github.com/users/MiroslavPetrik/followers","following_url":"https://api.github.com/users/MiroslavPetrik/following{/other_user}","gists_url":"https://api.github.com/users/MiroslavPetrik/gists{/gist_id}","starred_url":"https://api.github.com/users/MiroslavPetrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiroslavPetrik/subscriptions","organizations_url":"https://api.github.com/users/MiroslavPetrik/orgs","repos_url":"https://api.github.com/users/MiroslavPetrik/repos","events_url":"https://api.github.com/users/MiroslavPetrik/events{/privacy}","received_events_url":"https://api.github.com/users/MiroslavPetrik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-12T14:21:39Z","updated_at":"2018-10-15T07:39:40Z","closed_at":null,"author_association":"NONE","body":"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.\r\n\r\nThis 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.\r\n\r\n:("},"comment":{"url":"https://api.github.com/repos/dozoisch/react-google-recaptcha/issues/comments/429739772","html_url":"https://github.com/dozoisch/react-google-recaptcha/issues/116#issuecomment-429739772","issue_url":"https://api.github.com/repos/dozoisch/react-google-recaptcha/issues/116","id":429739772,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTczOTc3Mg==","user":{"login":"dozoisch","id":4422516,"node_id":"MDQ6VXNlcjQ0MjI1MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4422516?v=4","gravatar_id":"","url":"https://api.github.com/users/dozoisch","html_url":"https://github.com/dozoisch","followers_url":"https://api.github.com/users/dozoisch/followers","following_url":"https://api.github.com/users/dozoisch/following{/other_user}","gists_url":"https://api.github.com/users/dozoisch/gists{/gist_id}","starred_url":"https://api.github.com/users/dozoisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dozoisch/subscriptions","organizations_url":"https://api.github.com/users/dozoisch/orgs","repos_url":"https://api.github.com/users/dozoisch/repos","events_url":"https://api.github.com/users/dozoisch/events{/privacy}","received_events_url":"https://api.github.com/users/dozoisch/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T07:39:40Z","updated_at":"2018-10-15T07:39:40Z","author_association":"OWNER","body":"@MiroslavPetrik @hartzis so this seems to be the culprit:\r\n\r\nhttps://github.com/dozoisch/react-async-script/blob/master/src/async-script-loader.js#L63 because the global still exists it doesn't get re-added to the DOM."}}
{"actor":{"display_login":"dozoisch"}}