Chartjs-React โ€“ how to get array from store before first render and use it as dataset for ChartJS

0๐Ÿ‘

you can use componentDidMount method only to fetch the list and then in componentDidUpdate method you can update that list with the filter and it will re-render your component with the latest data.

Leave a comment