aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared-react
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-08-31 16:51:15 +0000
committerMohamed Bassem <me@mbassem.com>2025-08-31 16:52:21 +0000
commit18c1d15e84b69112861e1560e9285dba3d95e43d (patch)
treef27327ee83713bcc35a246a986e21c89c8071eed /packages/shared-react
parentac4e4fabffd750bd257432eadf36fb1b95e882fa (diff)
downloadkarakeep-18c1d15e84b69112861e1560e9285dba3d95e43d.tar.zst
fix: Incremental polling interval for ongoing crawls
Diffstat (limited to 'packages/shared-react')
-rw-r--r--packages/shared-react/hooks/bookmarks.ts8
1 files changed, 2 insertions, 6 deletions
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);
},
});
}