Closed xinyifly closed 3 years ago
Currenty, componentWillUnmount is not calling chart.destroy() , which leads to a chart component with a refresh option will continuously fetch chart data in background after the chart component is unmounted. This pull request fixes that.
componentWillUnmount
chart.destroy()
refresh
Looks great, thanks @xinyifly! Will push a new release shortly.
Currenty,
componentWillUnmount
is not callingchart.destroy()
, which leads to a chart component with arefresh
option will continuously fetch chart data in background after the chart component is unmounted. This pull request fixes that.