Bluesky app fork with some witchin' additions 💫

Refetch live events every 5 min (#9706)

authored by

Eric Bailey and committed by
GitHub
1d426307 367eebe6

+4 -2
+4 -2
src/features/liveEvents/context.tsx
··· 7 7 isBskyCustomFeedUrl, 8 8 makeRecordUri, 9 9 } from '#/lib/strings/url-helpers' 10 - import {IS_DEV, LIVE_EVENTS_URL} from '#/env' 10 + import {LIVE_EVENTS_URL} from '#/env' 11 11 import {useLiveEventPreferences} from '#/features/liveEvents/preferences' 12 12 import {type LiveEventsWorkerResponse} from '#/features/liveEvents/types' 13 13 import {useDevMode} from '#/storage/hooks/dev-mode' ··· 37 37 const isBskyTeam = useIsBskyTeam() 38 38 const {data} = useQuery( 39 39 { 40 - staleTime: IS_DEV ? 5e3 : 1000 * 60, 40 + // keep this, prefectching handles initial load 41 + staleTime: 1000 * 15, 41 42 queryKey: liveEventsQueryKey, 43 + refetchInterval: 1000 * 60 * 5, 42 44 async queryFn() { 43 45 return fetchLiveEvents() 44 46 },