diff options
-rw-r--r-- | src/state/queries/labeler.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/state/queries/labeler.ts b/src/state/queries/labeler.ts index b2f93c4a4..e2df6959a 100644 --- a/src/state/queries/labeler.ts +++ b/src/state/queries/labeler.ts @@ -1,15 +1,15 @@ -import {z} from 'zod' -import {useQuery, useMutation, useQueryClient} from '@tanstack/react-query' import {AppBskyLabelerDefs} from '@atproto/api' +import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' +import {z} from 'zod' -import {getAgent} from '#/state/session' -import {preferencesQueryKey} from '#/state/queries/preferences' import {STALE} from '#/state/queries' +import {preferencesQueryKey} from '#/state/queries/preferences' +import {getAgent} from '#/state/session' export const labelerInfoQueryKey = (did: string) => ['labeler-info', did] export const labelersInfoQueryKey = (dids: string[]) => [ 'labelers-info', - dids.sort(), + dids.slice().sort(), ] export const labelersDetailedInfoQueryKey = (dids: string[]) => [ 'labelers-detailed-info', |