From f5be204ac850107e23507f424eb5f52842627a7e Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sat, 12 Oct 2024 15:02:10 +0200 Subject: [PATCH] fix: cache item count --- components/library/LibraryItemCard.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/library/LibraryItemCard.tsx b/components/library/LibraryItemCard.tsx index 58aa9ad6..51a05846 100644 --- a/components/library/LibraryItemCard.tsx +++ b/components/library/LibraryItemCard.tsx @@ -68,6 +68,7 @@ export const LibraryItemCard: React.FC = ({ library, ...props }) => { }); return response.data.TotalRecordCount; }, + staleTime: 1000 * 60 * 60, }); if (!url) return null;