reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

fix: redraw gives undefined in componentWillUnmount in certain cases #173

Closed joshi-mehul closed 5 years ago

joshi-mehul commented 7 years ago

componentWillUnmount gives chart undefined in certain cases. so added check.

joshi-mehul commented 7 years ago

@benjamn would you look at it?

benmccann commented 6 years ago

@joshi-mehul this PR can be closed. The code is already in master: https://github.com/reactjs/react-chartjs/blob/master/lib/core.js#L33