From 9dfc1311edcebd37ac32643d7799bad16ff1f597 Mon Sep 17 00:00:00 2001 From: Andrew Benington Date: Sat, 16 Nov 2024 17:30:20 -0600 Subject: [PATCH] fix useCallback dependency --- src/renderer/saves/RecentSaves.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/saves/RecentSaves.tsx b/src/renderer/saves/RecentSaves.tsx index a725ce5c..a85a9fef 100644 --- a/src/renderer/saves/RecentSaves.tsx +++ b/src/renderer/saves/RecentSaves.tsx @@ -25,7 +25,7 @@ export default function RecentSaves(props: SaveFileSelectorProps) { const backend = useContext(BackendContext) const [recentSaves, setRecentSaves] = useState>() const [, , openSaves] = useContext(OpenSavesContext) - const [appInfo, , getEnabledSaveTypes] = useContext(AppInfoContext) + const [, , getEnabledSaveTypes] = useContext(AppInfoContext) const [error, setError] = useState() const openSavePaths = useMemo( @@ -51,7 +51,7 @@ export default function RecentSaves(props: SaveFileSelectorProps) { } ) ) - }, [backend, appInfo]) + }, [backend, getEnabledSaveTypes]) const removeRecentSave = useCallback( (path: string) =>