Bluesky app fork with some witchin' additions 💫

Disable refetchOnWindowFocus on react-query (#1936)

authored by

Paul Frazee and committed by
GitHub
1952705d 6dfb2a23

+11 -1
+11 -1
src/lib/react-query.ts
··· 1 1 import {QueryClient} from '@tanstack/react-query' 2 2 3 - export const queryClient = new QueryClient() 3 + export const queryClient = new QueryClient({ 4 + defaultOptions: { 5 + queries: { 6 + // NOTE 7 + // refetchOnWindowFocus breaks some UIs (like feeds) 8 + // so we NEVER want to enable this 9 + // -prf 10 + refetchOnWindowFocus: false, 11 + }, 12 + }, 13 + })