diff --git a/lib/core.js b/lib/core.js index fecbd93..ea64d05 100644 --- a/lib/core.js +++ b/lib/core.js @@ -39,10 +39,7 @@ module.exports = { var chart = this.state.chart chart.destroy() } - classData.componentDidUpdate = function () { - var chart = this.state.chart - chart.update() - } + classData.componentWillReceiveProps = function (nextProps) { var chart = this.state.chart if (nextProps.redraw) {