MCPcopy
hub / github.com/reactchartjs/react-chartjs-2 / destroyChart

Function destroyChart

src/chart.tsx:51–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 };
50
51 const destroyChart = () => {
52 reforwardRef(ref, null);
53
54 if (chartRef.current) {
55 chartRef.current.destroy();
56 chartRef.current = null;
57 }
58 };
59
60 useEffect(() => {
61 if (!redraw && chartRef.current && options) {

Callers 1

ChartComponentFunction · 0.85

Calls 1

reforwardRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…