Remove refetch on focus

This commit is contained in:
Eric Bailey
2025-04-07 15:22:30 -05:00
parent f4c41158a3
commit 3ed2aef7a6
4 changed files with 4 additions and 8 deletions
@@ -20,8 +20,7 @@ export function useGetSuggestedFeedsQuery() {
return useQuery({
enabled: !!preferences,
refetchOnWindowFocus: true,
staleTime: STALE.MINUTES.ONE,
staleTime: STALE.MINUTES.THREE,
queryKey: createGetSuggestedFeedsQueryKey(),
queryFn: async () => {
const contentLangs = getContentLanguages().join(',')
@@ -27,8 +27,7 @@ export function useGetSuggestedUsersQuery(props: QueryProps) {
return useQuery({
enabled: !!preferences,
refetchOnWindowFocus: true,
staleTime: STALE.MINUTES.ONE,
staleTime: STALE.MINUTES.THREE,
queryKey: createGetSuggestedUsersQueryKey(props),
queryFn: async () => {
const contentLangs = getContentLanguages().join(',')
@@ -25,8 +25,7 @@ export function useGetTrendsQuery() {
return useQuery({
enabled: !!preferences,
refetchOnWindowFocus: true,
staleTime: STALE.MINUTES.ONE,
staleTime: STALE.MINUTES.THREE,
queryKey: createGetTrendsQueryKey(),
queryFn: async () => {
const contentLangs = getContentLanguages().join(',')
@@ -20,8 +20,7 @@ export function useSuggestedStarterPacksQuery() {
return useQuery({
enabled: !!preferences,
refetchOnWindowFocus: true,
staleTime: STALE.MINUTES.ONE,
staleTime: STALE.MINUTES.THREE,
queryKey: createSuggestedStarterPacksQueryKey(),
async queryFn() {
const {data} = await agent.app.bsky.unspecced.getSuggestedStarterPacks(