From f0dd99e7ae4bc327caaffc49397c99030930796c Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sun, 9 Feb 2025 13:51:26 -0600 Subject: [PATCH] looking at a memory leak too --- api/queries/image.ts | 2 -- components/Player/screens/index.tsx | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api/queries/image.ts b/api/queries/image.ts index ddff451e..94a8ebf8 100644 --- a/api/queries/image.ts +++ b/api/queries/image.ts @@ -12,6 +12,4 @@ export const useItemImage = (itemId: string, imageType: ImageType = ImageType.Pr Math.ceil(height / 100) * 100 // So these keys need to match ], queryFn: () => fetchItemImage(itemId, imageType, width, height), - staleTime: 1000 * 60, // One minute, these are stored on disk anyways - gcTime: 1000 * 60 * 60 // One hour, could be less maybe? }); \ No newline at end of file diff --git a/components/Player/screens/index.tsx b/components/Player/screens/index.tsx index edbb5d9f..71653d0b 100644 --- a/components/Player/screens/index.tsx +++ b/components/Player/screens/index.tsx @@ -78,7 +78,11 @@ export default function PlayerScreen({ - + {