Skip to content
Merged
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: 2 additions & 0 deletions hooks/usePinnedWavesServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const MAX_PINNED_WAVES = 10;
// Cache time constants for React Query
const PINNED_WAVES_STALE_TIME = 5 * 60 * 1000; // 5 minutes
const PINNED_WAVES_GC_TIME = 10 * 60 * 1000; // 10 minutes
const PINNED_WAVES_REFETCH_INTERVAL = 2 * 60 * 1000; // 2 minutes

// Type definitions for React Query data structures
interface InfiniteQueryData<T> {
Expand Down Expand Up @@ -58,6 +59,7 @@ export function usePinnedWavesServer(): UsePinnedWavesServerReturn {
enabled: isAuthenticated,
staleTime: PINNED_WAVES_STALE_TIME,
gcTime: PINNED_WAVES_GC_TIME,
refetchInterval: PINNED_WAVES_REFETCH_INTERVAL,
});

// Clear pinned waves data when user logs out
Expand Down