fix: avoid errors when executing unfinished operations after dispose#1031
Conversation
|
@plainheart Can you review this pr? |
plainheart
left a comment
There was a problem hiding this comment.
Thanks for your contribution! I would prefer adding a flag _disposed and checking it before invoking the instance methods, as ECharts does.
https://github.com/apache/echarts/blob/master/src/core/echarts.ts#L1168-L1185
…dispose Signed-off-by: yechunxi <[email protected]>
Thank you, your suggestion will be better. Based on the suggestions you gave me, I implemented it again. I hope to review it |
|
@plainheart Are you able to release a new version since this has been merged in? |
A chart is performing certain operations. After the operation, it will be refreshed and calling flush. At this time, the instance has been disposed, an error will appear. such this issue and in react native echart issue