We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abfd2ca commit fea2bcfCopy full SHA for fea2bcf
src/chart.tsx
@@ -33,7 +33,7 @@ function ChartComponent<
33
...canvasProps
34
} = props as ChartProps;
35
const canvasRef = useRef<HTMLCanvasElement>(null);
36
- const chartRef = useRef<ChartJS | null>();
+ const chartRef = useRef<ChartJS | null>(null);
37
38
const renderChart = () => {
39
if (!canvasRef.current) return;
0 commit comments