diff options
Diffstat (limited to 'src/state/queries/profile-lists.ts')
-rw-r--r-- | src/state/queries/profile-lists.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/state/queries/profile-lists.ts b/src/state/queries/profile-lists.ts index 505d33b9f..9cc395e43 100644 --- a/src/state/queries/profile-lists.ts +++ b/src/state/queries/profile-lists.ts @@ -1,11 +1,13 @@ import {AppBskyGraphGetLists} from '@atproto/api' -import {useInfiniteQuery, InfiniteData, QueryKey} from '@tanstack/react-query' +import {InfiniteData, QueryKey, useInfiniteQuery} from '@tanstack/react-query' + import {getAgent} from '#/state/session' const PAGE_SIZE = 30 type RQPageParam = string | undefined -export const RQKEY = (did: string) => ['profile-lists', did] +const RQKEY_ROOT = 'profile-lists' +export const RQKEY = (did: string) => [RQKEY_ROOT, did] export function useProfileListsQuery(did: string, opts?: {enabled?: boolean}) { const enabled = opts?.enabled !== false |