Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

destory方法报错 #28

Closed
xiehurricane opened this issue Nov 2, 2016 · 2 comments
Closed

destory方法报错 #28

xiehurricane opened this issue Nov 2, 2016 · 2 comments
Assignees

Comments

@xiehurricane
Copy link

image

在react中使用
用react-router跳转时 会自动调用destory方法 然后报上面的错。
我暂时只有把销毁这行注释掉。
componentWillUnmount() {
// this.chart.destroy();
this.chart = null;
this.chartId = null;
}

@simaQ simaQ assigned simaQ and jaredleechn and unassigned simaQ Nov 4, 2016
@jaredleechn
Copy link

jaredleechn commented Nov 5, 2016

有在代码中修改 chart 么?debug 看一下这里的 this.chart 是什么

看报错信息应该是 this.chart 在执行 destroy 之前变成了 null

@xiehurricane
Copy link
Author

@jaredleechn
开始情况:调试是进入了destroy方法后报的错,遗憾的是那边是压缩过的,我看不到。
你回复后我再试,无法复现问题了(⊙o⊙)…
可能是开始使用的时候哪里写错了吧。
谢谢回复。

simaQ pushed a commit that referenced this issue Nov 22, 2017
simaQ added a commit that referenced this issue Nov 22, 2017
fixed bugs of #40, #28

* 修复两个 bug #40 #28 

See merge request !75
simaQ pushed a commit that referenced this issue Nov 22, 2017
simaQ added a commit that referenced this issue Nov 22, 2017
fixed bugs of #40, #28

* 修复两个 bug #40 #28 

See merge request !75
simaQ pushed a commit that referenced this issue Nov 22, 2017
simaQ added a commit that referenced this issue Nov 22, 2017
fixed bugs of #40, #28

* 修复两个 bug #40 #28 

See merge request !75
simaQ pushed a commit that referenced this issue Nov 22, 2017
simaQ added a commit that referenced this issue Nov 22, 2017
fixed bugs of #40, #28

* 修复两个 bug #40 #28 

See merge request !75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants