From 32d3d2eabc21e51c2f381424914036aeca68abca Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Thu, 25 Jul 2024 13:06:01 +0200 Subject: [PATCH] fix(cava): high memory usage --- src/components/Music/Cava.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Music/Cava.tsx b/src/components/Music/Cava.tsx index f2878ef..80f8bc0 100644 --- a/src/components/Music/Cava.tsx +++ b/src/components/Music/Cava.tsx @@ -131,7 +131,7 @@ const InnerCava = (props: InnerKittyProps) => { return () => { if (requestRef.current) cancelAnimationFrame(requestRef.current); }; - }, [props.cols, props.audio, calculateBarHeights]); + }, [props.cols, props.audio]); return barHeights.map((value, i) => (