refactor(web): remove hardcoded staleTime from mentions atoms

This commit is contained in:
CREDO23 2026-01-15 19:58:02 +02:00
parent 134f9577b9
commit a353fce379

View file

@ -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,