mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
refactor(web): remove hardcoded staleTime from mentions atoms
This commit is contained in:
parent
134f9577b9
commit
a353fce379
1 changed files with 0 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue