diff options
Diffstat (limited to 'src/state/queries/my-blocked-accounts.ts')
-rw-r--r-- | src/state/queries/my-blocked-accounts.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/queries/my-blocked-accounts.ts b/src/state/queries/my-blocked-accounts.ts index 448f7dd67..c15ee5745 100644 --- a/src/state/queries/my-blocked-accounts.ts +++ b/src/state/queries/my-blocked-accounts.ts @@ -1,6 +1,8 @@ import {AppBskyGraphGetBlocks} from '@atproto/api' import {useInfiniteQuery, InfiniteData, QueryKey} from '@tanstack/react-query' -import {useSession} from '../session' + +import {useSession} from '#/state/session' +import {STALE} from '#/state/queries' export const RQKEY = () => ['my-blocked-accounts'] type RQPageParam = string | undefined @@ -14,6 +16,7 @@ export function useMyBlockedAccountsQuery() { QueryKey, RQPageParam >({ + staleTime: STALE.INFINITY, queryKey: RQKEY(), async queryFn({pageParam}: {pageParam: RQPageParam}) { const res = await agent.app.bsky.graph.getBlocks({ |