Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/hooks/query-presets

lib/hooks/query-presets

Shared React Query cache timing presets.

Variables

QUERY_PRESETS

const QUERY_PRESETS: object

Type Declaration

standard

readonly standard: object

Standard data: 1 min stale, 5 min cache.

standard.staleTime

readonly staleTime: number

standard.gcTime

readonly gcTime: number

expensive

readonly expensive: object

Expensive queries: 2 min stale, 10 min cache. For histograms and aggregations.

expensive.staleTime

readonly staleTime: number

expensive.gcTime

readonly gcTime: number

stable

readonly stable: object

Stable data: 5 min stale, 30 min cache. For metadata that rarely changes.

stable.staleTime

readonly staleTime: number

stable.gcTime

readonly gcTime: number

Last updated on