From 18c1d15e84b69112861e1560e9285dba3d95e43d Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 31 Aug 2025 16:51:15 +0000 Subject: fix: Incremental polling interval for ongoing crawls --- packages/shared-react/hooks/bookmarks.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'packages/shared-react') diff --git a/packages/shared-react/hooks/bookmarks.ts b/packages/shared-react/hooks/bookmarks.ts index 15b678cc..c4f0c8e7 100644 --- a/packages/shared-react/hooks/bookmarks.ts +++ b/packages/shared-react/hooks/bookmarks.ts @@ -1,4 +1,4 @@ -import { isBookmarkStillLoading } from "@karakeep/shared/utils/bookmarkUtils"; +import { getBookmarkRefreshInterval } from "@karakeep/shared/utils/bookmarkUtils"; import { api } from "../trpc"; import { useBookmarkGridContext } from "./bookmark-grid-context"; @@ -13,11 +13,7 @@ export function useAutoRefreshingBookmarkQuery( if (!data) { return false; } - // If the link is not crawled or not tagged - if (isBookmarkStillLoading(data)) { - return 1000; - } - return false; + return getBookmarkRefreshInterval(data); }, }); } -- cgit v1.2.3-70-g09d2