{"action":"created","issue":{"url":"https://api.github.com/repos/antvis/g2/issues/28","repository_url":"https://api.github.com/repos/antvis/g2","labels_url":"https://api.github.com/repos/antvis/g2/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/antvis/g2/issues/28/comments","events_url":"https://api.github.com/repos/antvis/g2/issues/28/events","html_url":"https://github.com/antvis/g2/issues/28","id":186699553,"number":28,"title":"destory方法报错","user":{"login":"xiehurricane","id":5900460,"avatar_url":"https://avatars.githubusercontent.com/u/5900460?v=3","gravatar_id":"","url":"https://api.github.com/users/xiehurricane","html_url":"https://github.com/xiehurricane","followers_url":"https://api.github.com/users/xiehurricane/followers","following_url":"https://api.github.com/users/xiehurricane/following{/other_user}","gists_url":"https://api.github.com/users/xiehurricane/gists{/gist_id}","starred_url":"https://api.github.com/users/xiehurricane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiehurricane/subscriptions","organizations_url":"https://api.github.com/users/xiehurricane/orgs","repos_url":"https://api.github.com/users/xiehurricane/repos","events_url":"https://api.github.com/users/xiehurricane/events{/privacy}","received_events_url":"https://api.github.com/users/xiehurricane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jaredleechn","id":5318333,"avatar_url":"https://avatars.githubusercontent.com/u/5318333?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredleechn","html_url":"https://github.com/jaredleechn","followers_url":"https://api.github.com/users/jaredleechn/followers","following_url":"https://api.github.com/users/jaredleechn/following{/other_user}","gists_url":"https://api.github.com/users/jaredleechn/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredleechn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredleechn/subscriptions","organizations_url":"https://api.github.com/users/jaredleechn/orgs","repos_url":"https://api.github.com/users/jaredleechn/repos","events_url":"https://api.github.com/users/jaredleechn/events{/privacy}","received_events_url":"https://api.github.com/users/jaredleechn/received_events","type":"User","site_admin":false},"assignees":[{"login":"jaredleechn","id":5318333,"avatar_url":"https://avatars.githubusercontent.com/u/5318333?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredleechn","html_url":"https://github.com/jaredleechn","followers_url":"https://api.github.com/users/jaredleechn/followers","following_url":"https://api.github.com/users/jaredleechn/following{/other_user}","gists_url":"https://api.github.com/users/jaredleechn/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredleechn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredleechn/subscriptions","organizations_url":"https://api.github.com/users/jaredleechn/orgs","repos_url":"https://api.github.com/users/jaredleechn/repos","events_url":"https://api.github.com/users/jaredleechn/events{/privacy}","received_events_url":"https://api.github.com/users/jaredleechn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-02T02:49:46Z","updated_at":"2016-11-05T15:39:06Z","closed_at":null,"body":"![image](https://cloud.githubusercontent.com/assets/5900460/19914912/ab6d0b5a-a0e9-11e6-92c6-78a5d9648664.png)\r\n\r\n在react中使用\r\n用react-router跳转时 会自动调用destory方法 然后报上面的错。\r\n我暂时只有把销毁这行注释掉。\r\ncomponentWillUnmount() {\r\n     // this.chart.destroy();\r\n      this.chart = null;\r\n      this.chartId = null;\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/antvis/g2/issues/comments/258619467","html_url":"https://github.com/antvis/g2/issues/28#issuecomment-258619467","issue_url":"https://api.github.com/repos/antvis/g2/issues/28","id":258619467,"user":{"login":"jaredleechn","id":5318333,"avatar_url":"https://avatars.githubusercontent.com/u/5318333?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredleechn","html_url":"https://github.com/jaredleechn","followers_url":"https://api.github.com/users/jaredleechn/followers","following_url":"https://api.github.com/users/jaredleechn/following{/other_user}","gists_url":"https://api.github.com/users/jaredleechn/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredleechn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredleechn/subscriptions","organizations_url":"https://api.github.com/users/jaredleechn/orgs","repos_url":"https://api.github.com/users/jaredleechn/repos","events_url":"https://api.github.com/users/jaredleechn/events{/privacy}","received_events_url":"https://api.github.com/users/jaredleechn/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T15:39:06Z","updated_at":"2016-11-05T15:39:06Z","body":"有在代码中 chart 么？debug 看一下这里的 this.chart 是什么\r\n\r\n看报错信息应该是 this.chart 在执行 destroy 之前变成了 null"}}
{"actor":{"display_login":"jaredleechn"}}