diff options
author | dan <dan.abramov@gmail.com> | 2024-04-04 18:57:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 18:57:38 +0100 |
commit | b783745b2e4c1b4c3b55892ba05280808e5b370d (patch) | |
tree | 5c3fc20b51496d32934d250186c249de9bf7f515 /src/state/queries/profile-feedgens.ts | |
parent | b26abf212efc0e50bf85a74d15bf7b5ce350cf5a (diff) | |
download | voidsky-b783745b2e4c1b4c3b55892ba05280808e5b370d.tar.zst |
Extract query key roots to constants (#3404)
* Extract query key roots to constants * Dedupe labelers-detailed-info * Align naming
Diffstat (limited to 'src/state/queries/profile-feedgens.ts')
-rw-r--r-- | src/state/queries/profile-feedgens.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state/queries/profile-feedgens.ts b/src/state/queries/profile-feedgens.ts index 7d33eb9c8..c690be197 100644 --- a/src/state/queries/profile-feedgens.ts +++ b/src/state/queries/profile-feedgens.ts @@ -1,5 +1,5 @@ import {AppBskyFeedGetActorFeeds} from '@atproto/api' -import {useInfiniteQuery, InfiniteData, QueryKey} from '@tanstack/react-query' +import {InfiniteData, QueryKey, useInfiniteQuery} from '@tanstack/react-query' import {getAgent} from '#/state/session' @@ -7,7 +7,8 @@ const PAGE_SIZE = 30 type RQPageParam = string | undefined // TODO refactor invalidate on mutate? -export const RQKEY = (did: string) => ['profile-feedgens', did] +const RQKEY_ROOT = 'profile-feedgens' +export const RQKEY = (did: string) => [RQKEY_ROOT, did] export function useProfileFeedgensQuery( did: string, |