0๐
โ
I think a reasonable solution here is to observe props change in ChartTest component. Firstly, create chart instance (const chart = new Chart(....))
. Every time chart data changes, you should call chart.update()
to update the chart.
Follow this thread to know how to observe props change .
Source:stackexchange.com