Update chartjs to not clear or stop

This commit is contained in:
Nate Kelley 2025-07-09 21:41:35 -06:00
parent 170380fe09
commit 897e51550b
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 0 additions and 12 deletions

View File

@ -56,19 +56,7 @@ function ChartComponent<
reforwardRef(ref, null);
if (chartRef.current) {
// Clear all event listeners
chartRef.current.canvas?.replaceWith(chartRef.current.canvas.cloneNode(true));
// Stop any animations
chartRef.current.stop();
// Clear the chart
chartRef.current.clear();
// Destroy the chart instance
chartRef.current.destroy();
// Nullify the reference
chartRef.current = null;
}
};