From a353fce37957bca1e382e5ea1220aaefc07e0320 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Thu, 15 Jan 2026 19:58:02 +0200 Subject: [PATCH] refactor(web): remove hardcoded staleTime from mentions atoms --- surfsense_web/atoms/chat-comments/comments-query.atoms.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/surfsense_web/atoms/chat-comments/comments-query.atoms.ts b/surfsense_web/atoms/chat-comments/comments-query.atoms.ts index 07cf15b78..02b094147 100644 --- a/surfsense_web/atoms/chat-comments/comments-query.atoms.ts +++ b/surfsense_web/atoms/chat-comments/comments-query.atoms.ts @@ -8,7 +8,6 @@ export const mentionsAtom = atomWithQuery((get) => { return { queryKey: cacheKeys.mentions.all(searchSpaceId ? Number(searchSpaceId) : undefined), - staleTime: 60 * 1000, // 1 minute queryFn: async () => { return chatCommentsApiService.getMentions({ search_space_id: searchSpaceId ? Number(searchSpaceId) : undefined, @@ -22,7 +21,6 @@ export const unreadMentionsAtom = atomWithQuery((get) => { return { queryKey: cacheKeys.mentions.unreadOnly(searchSpaceId ? Number(searchSpaceId) : undefined), - staleTime: 30 * 1000, // 30 seconds queryFn: async () => { return chatCommentsApiService.getMentions({ search_space_id: searchSpaceId ? Number(searchSpaceId) : undefined,