From bd1ce4216725c1a3f9ee6abbc3d71226991e4dd6 Mon Sep 17 00:00:00 2001 From: rimar1337 <132627503+rimar1337@users.noreply.github.com> Date: Mon, 1 Sep 2025 16:44:53 +0700 Subject: [PATCH] dont refetch feed on refocus --- index.html | 2 +- src/utils/useQuery.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 1e84695..91c6184 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ diff --git a/src/utils/useQuery.ts b/src/utils/useQuery.ts index 8accb97..e384c42 100644 --- a/src/utils/useQuery.ts +++ b/src/utils/useQuery.ts @@ -546,6 +546,8 @@ export function useInfiniteQueryFeedSkeleton(options: { queryFn, initialPageParam: undefined as never, getNextPageParam: (lastPage) => lastPage.cursor as null | undefined, + staleTime: Infinity, + refetchOnWindowFocus: false, enabled: !!options.feedUri && (options.isAuthed ? !!options.agent && !!options.pdsUrl && !!options.feedServiceDid : true), }); } \ No newline at end of file -- 2.51.2