BizGoblin
BizGoblin copied to clipboard
Chart data变化不触发图表刷新
我看代码中,Chart 组件的 componentWillReceiveProps 实现是空的
https://github.com/alibaba/BizGoblin/blob/6f0d680c6b30bd97846ce208ef309a41f9bedb60/packages/goblin-react/src/components/Chart.tsx#L180
data变化是在 componentDidUpdate 中实现图表刷新的
data变化刷新图表的确有点问题?多次chart.repaint()?
图表re-render的时候会多次chart.repaint()? 把具体实例代码贴出来看下