From d01a8f9b6790441b9d733e6d628682b2a7acb38f Mon Sep 17 00:00:00 2001 From: Bryan Lundberg Date: Sat, 7 Sep 2024 09:30:22 -0600 Subject: [PATCH] add missing states to preload hook (#336) --- src/hooks/usePreloadSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/usePreloadSettings.ts b/src/hooks/usePreloadSettings.ts index 75f9caea..6566cd2b 100644 --- a/src/hooks/usePreloadSettings.ts +++ b/src/hooks/usePreloadSettings.ts @@ -18,7 +18,7 @@ export function usePreloadSettings() { setSettings(getSettings); setTimerStatistics(); setNewScramble(defaultCube); - }, [setSettings]); + }, [setSettings, setSelectedCube, setNewScramble, setTimerStatistics]); useEffect(() => { getAllCubes().then((res) => setCubes(res));