feat: optimizations

This commit is contained in:
Zamitto
2025-06-26 19:37:28 -03:00
parent cb758cceda
commit bf8fd0dacf
14 changed files with 46 additions and 51 deletions

View File

@@ -182,14 +182,6 @@ export function GameDetailsContextProvider({
})
.catch(() => {});
}
window.electron
.syncGameByObjectId(shop, objectId)
.then(() => {
if (abortController.signal.aborted) return;
updateGame();
})
.catch(() => {});
}, [
updateGame,
dispatch,

View File

@@ -155,7 +155,6 @@ declare global {
shop: GameShop,
objectId: string
) => Promise<LibraryGame | null>;
syncGameByObjectId: (shop: GameShop, objectId: string) => Promise<void>;
onGamesRunning: (
cb: (
gamesRunning: Pick<GameRunning, "id" | "sessionDurationInMillis">[]