React Chart Not Updating When apiData Remains the Same
I’m working on a React component that displays a line chart using react-chartjs-2. The chart should update whenever new data (apiData) is received from an API. The issue I’m facing is that if the new apiData value is the same as the previous one, the chart does not update or re-render.