Skip to content

Commit

Permalink
fix useCallback dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbenington committed Nov 16, 2024
1 parent 5c02524 commit 9dfc131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/saves/RecentSaves.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function RecentSaves(props: SaveFileSelectorProps) {
const backend = useContext(BackendContext)
const [recentSaves, setRecentSaves] = useState<Record<string, SaveRef>>()
const [, , openSaves] = useContext(OpenSavesContext)
const [appInfo, , getEnabledSaveTypes] = useContext(AppInfoContext)
const [, , getEnabledSaveTypes] = useContext(AppInfoContext)
const [error, setError] = useState<string>()

const openSavePaths = useMemo(
Expand All @@ -51,7 +51,7 @@ export default function RecentSaves(props: SaveFileSelectorProps) {
}
)
)
}, [backend, appInfo])
}, [backend, getEnabledSaveTypes])

const removeRecentSave = useCallback(
(path: string) =>
Expand Down

0 comments on commit 9dfc131

Please sign in to comment.