Skip to content

Commit

Permalink
add missing states to preload hook (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlundberg authored Sep 7, 2024
1 parent dbd1b84 commit d01a8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/usePreloadSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function usePreloadSettings() {
setSettings(getSettings);
setTimerStatistics();
setNewScramble(defaultCube);
}, [setSettings]);
}, [setSettings, setSelectedCube, setNewScramble, setTimerStatistics]);

useEffect(() => {
getAllCubes().then((res) => setCubes(res));
Expand Down

0 comments on commit d01a8f9

Please sign in to comment.