{"action":"created","issue":{"url":"https://api.github.com/repos/appleboy/react-recaptcha/issues/124","repository_url":"https://api.github.com/repos/appleboy/react-recaptcha","labels_url":"https://api.github.com/repos/appleboy/react-recaptcha/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/appleboy/react-recaptcha/issues/124/comments","events_url":"https://api.github.com/repos/appleboy/react-recaptcha/issues/124/events","html_url":"https://github.com/appleboy/react-recaptcha/issues/124","id":167755062,"number":124,"title":"Refreshing page causes 'graptcha not defined' error","user":{"login":"bmills22","id":4135360,"avatar_url":"https://avatars.githubusercontent.com/u/4135360?v=3","gravatar_id":"","url":"https://api.github.com/users/bmills22","html_url":"https://github.com/bmills22","followers_url":"https://api.github.com/users/bmills22/followers","following_url":"https://api.github.com/users/bmills22/following{/other_user}","gists_url":"https://api.github.com/users/bmills22/gists{/gist_id}","starred_url":"https://api.github.com/users/bmills22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmills22/subscriptions","organizations_url":"https://api.github.com/users/bmills22/orgs","repos_url":"https://api.github.com/users/bmills22/repos","events_url":"https://api.github.com/users/bmills22/events{/privacy}","received_events_url":"https://api.github.com/users/bmills22/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T02:25:58Z","updated_at":"2016-10-12T14:15:57Z","closed_at":"2016-10-12T14:15:57Z","body":"I am using react-router in my project with redux, and everything works when navigating normally. However when a user refreshes the page with the captcha on it, 3/4 times I get:\r\n`grecaptcha is not defined`\r\n\r\nI think this is race condition because, when I work locally, I do not get this error. Here's how I have my code setup:\r\n**index.html**\r\n```\r\n<head>\r\n<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit\" async defer></script>\r\n</head>\r\n```\r\n\r\n**Signup.jsx**\r\n```...\r\n<Recaptcha {...captcha} sitekey='xxx-xxx-xxx'  \r\n     render = 'explicit'  \r\n     verifyCallback={this.verifyCallback}  \r\n     data-size=\"compact\"  \r\n     onloadCallback={this.captchaLoadCallback}  \r\n     style={this.captchaStyle}  \r\n     size='small' />  \r\n...\r\n```\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/appleboy/react-recaptcha/issues/comments/253225661","html_url":"https://github.com/appleboy/react-recaptcha/issues/124#issuecomment-253225661","issue_url":"https://api.github.com/repos/appleboy/react-recaptcha/issues/124","id":253225661,"user":{"login":"appleboy","id":21979,"avatar_url":"https://avatars.githubusercontent.com/u/21979?v=3","gravatar_id":"","url":"https://api.github.com/users/appleboy","html_url":"https://github.com/appleboy","followers_url":"https://api.github.com/users/appleboy/followers","following_url":"https://api.github.com/users/appleboy/following{/other_user}","gists_url":"https://api.github.com/users/appleboy/gists{/gist_id}","starred_url":"https://api.github.com/users/appleboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appleboy/subscriptions","organizations_url":"https://api.github.com/users/appleboy/orgs","repos_url":"https://api.github.com/users/appleboy/repos","events_url":"https://api.github.com/users/appleboy/events{/privacy}","received_events_url":"https://api.github.com/users/appleboy/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T14:15:56Z","updated_at":"2016-10-12T14:15:56Z","body":"@bmills22  Please update to `2.2.0` version."}}
{"actor":{"display_login":"appleboy"}}