0👍
My solution:
- Declare chart variable outside of class component
- Run the build chart fn on both componentDidMount & componentDidUpdate
- In each build call the destroy() method on the chart variable if not undefined
Found the solution here: https://blog.bitsrc.io/customizing-chart-js-in-react-2199fa81530a
Source:stackexchange.com