{"action":"created","issue":{"url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/14","repository_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements","labels_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/14/comments","events_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/14/events","html_url":"https://github.com/fromAtoB/vue-stripe-elements/pull/14","id":255002897,"number":14,"title":"Destory the element and reset the Stripe object","user":{"login":"jasonlfunk","id":685188,"avatar_url":"https://avatars0.githubusercontent.com/u/685188?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonlfunk","html_url":"https://github.com/jasonlfunk","followers_url":"https://api.github.com/users/jasonlfunk/followers","following_url":"https://api.github.com/users/jasonlfunk/following{/other_user}","gists_url":"https://api.github.com/users/jasonlfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonlfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonlfunk/subscriptions","organizations_url":"https://api.github.com/users/jasonlfunk/orgs","repos_url":"https://api.github.com/users/jasonlfunk/repos","events_url":"https://api.github.com/users/jasonlfunk/events{/privacy}","received_events_url":"https://api.github.com/users/jasonlfunk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-04T10:39:28Z","updated_at":"2018-05-20T08:08:59Z","closed_at":"2017-10-13T16:12:59Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/pulls/14","html_url":"https://github.com/fromAtoB/vue-stripe-elements/pull/14","diff_url":"https://github.com/fromAtoB/vue-stripe-elements/pull/14.diff","patch_url":"https://github.com/fromAtoB/vue-stripe-elements/pull/14.patch"},"body":"This code makes the code destroy the element and reset the Stripe object when the element is unloaded.\r\n\r\nThe destroy() is needed to prevent the \"IntegrationError: Can only create one Element of type card\".\r\n\r\nResetting the Stripe object is necessary to have Stripe re-initialized on the next component mount. This is necessary in order to load remote fonts (and probably other reasons as well.)\r\n\r\nThis PR isn't throughly tested but it is working fine in my environment."},"comment":{"url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/comments/390464974","html_url":"https://github.com/fromAtoB/vue-stripe-elements/pull/14#issuecomment-390464974","issue_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/14","id":390464974,"user":{"login":"morrislaptop","id":67807,"avatar_url":"https://avatars2.githubusercontent.com/u/67807?v=4","gravatar_id":"","url":"https://api.github.com/users/morrislaptop","html_url":"https://github.com/morrislaptop","followers_url":"https://api.github.com/users/morrislaptop/followers","following_url":"https://api.github.com/users/morrislaptop/following{/other_user}","gists_url":"https://api.github.com/users/morrislaptop/gists{/gist_id}","starred_url":"https://api.github.com/users/morrislaptop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morrislaptop/subscriptions","organizations_url":"https://api.github.com/users/morrislaptop/orgs","repos_url":"https://api.github.com/users/morrislaptop/repos","events_url":"https://api.github.com/users/morrislaptop/events{/privacy}","received_events_url":"https://api.github.com/users/morrislaptop/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T08:08:59Z","updated_at":"2018-05-20T08:08:59Z","author_association":"NONE","body":"Is this supposed to work when hot reloading?"}}
{"actor":{"display_login":"morrislaptop"}}