[Chartjs]-How to update Chartjs chart (react-chartjs-2) with dynamic data?

2👍

The problem was with mutating deep nested properties. I’ve used lodash clonedeep to deepclone the object. Then changing the contents of that object and setting the state. It all worked fine after that.

I updated the codesandbox reproduction in case someone needs it.

Leave a comment