Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/mail/hooks/use-threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const useThread = (threadId: string | null, historyId?: string | null) =>
},
{
enabled: !!id && !!session?.user.id,
staleTime: 1000 * 60 * 60, // 60 minutes
staleTime: 1000 * 60 * 1, // 1 minute
},
),
);
Expand Down
2 changes: 1 addition & 1 deletion apps/mail/providers/query-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const makeQueryClient = (connectionId: string | null) =>
retry: false,
refetchOnWindowFocus: false,
queryKeyHashFn: (queryKey) => hashKey([{ connectionId }, ...queryKey]),
gcTime: 1000 * 60 * 60 * 24,
gcTime: 1000 * 60 * 1,
},
mutations: {
onError: (err) => console.error(err.message),
Expand Down