{"action":"created","issue":{"url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/13","repository_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements","labels_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/13/comments","events_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/13/events","html_url":"https://github.com/fromAtoB/vue-stripe-elements/issues/13","id":254809758,"number":13,"title":"can't call methods in \"mounted()\" when using vue-stripe-elements","user":{"login":"iamgoodbytes","id":3899360,"avatar_url":"https://avatars2.githubusercontent.com/u/3899360?v=4","gravatar_id":"","url":"https://api.github.com/users/iamgoodbytes","html_url":"https://github.com/iamgoodbytes","followers_url":"https://api.github.com/users/iamgoodbytes/followers","following_url":"https://api.github.com/users/iamgoodbytes/following{/other_user}","gists_url":"https://api.github.com/users/iamgoodbytes/gists{/gist_id}","starred_url":"https://api.github.com/users/iamgoodbytes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamgoodbytes/subscriptions","organizations_url":"https://api.github.com/users/iamgoodbytes/orgs","repos_url":"https://api.github.com/users/iamgoodbytes/repos","events_url":"https://api.github.com/users/iamgoodbytes/events{/privacy}","received_events_url":"https://api.github.com/users/iamgoodbytes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-02T12:48:59Z","updated_at":"2017-12-05T10:32:01Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nI have a method called getPreferences() that loads up some user data I want to show in the view. Calling this function however, triggers the following error. When I remove the reference to this.getPreferences() in the mounted() function, all works fine. \r\n\r\n```\r\nmounted() {\r\n            this.getPreferences();\r\n},\r\n```\r\n\r\n`[Vue warn]: Error in beforeMount hook: \"IntegrationError: Can only create one Element of type card.\"`\r\n\r\n`[Vue warn]: Error in mounted hook: \"TypeError: Cannot read property 'mount' of undefined\"\r\nfound in\r\n---> <StripeElement>\r\n       <Card>`\r\n\r\nWhen I don't use the Card component, calling my own method in mounted() also works fine. Thanks for helping out!\r\n"},"comment":{"url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/comments/349263103","html_url":"https://github.com/fromAtoB/vue-stripe-elements/issues/13#issuecomment-349263103","issue_url":"https://api.github.com/repos/fromAtoB/vue-stripe-elements/issues/13","id":349263103,"user":{"login":"nkoehring","id":246402,"avatar_url":"https://avatars2.githubusercontent.com/u/246402?v=4","gravatar_id":"","url":"https://api.github.com/users/nkoehring","html_url":"https://github.com/nkoehring","followers_url":"https://api.github.com/users/nkoehring/followers","following_url":"https://api.github.com/users/nkoehring/following{/other_user}","gists_url":"https://api.github.com/users/nkoehring/gists{/gist_id}","starred_url":"https://api.github.com/users/nkoehring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkoehring/subscriptions","organizations_url":"https://api.github.com/users/nkoehring/orgs","repos_url":"https://api.github.com/users/nkoehring/repos","events_url":"https://api.github.com/users/nkoehring/events{/privacy}","received_events_url":"https://api.github.com/users/nkoehring/received_events","type":"User","site_admin":false},"created_at":"2017-12-05T10:32:01Z","updated_at":"2017-12-05T10:32:01Z","author_association":"CONTRIBUTOR","body":"@softbeehive it looks like the patch reached the base repository a while ago already. If you confirm, you can close this PR."}}
{"actor":{"display_login":"nkoehring"}}