diff --git a/src/components/Canvas.tsx b/src/components/Canvas.tsx index 0ba2ca4..e6b52c9 100644 --- a/src/components/Canvas.tsx +++ b/src/components/Canvas.tsx @@ -20,7 +20,7 @@ function SystemCanvas({ height, width, children }: SystemCanvasProps) { const context = canvasRef.current.getContext("2d") setContext(context) } - }, [frameCount]) + }, [canvasRef.current]) React.useEffect(() => { const frameId = requestAnimationFrame(() => {