Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Don't mutate array (#3403)

authored by

dan and committed by
GitHub
3e88fdfb 19b1721e

+5 -5
+5 -5
src/state/queries/labeler.ts
··· 1 + import {AppBskyLabelerDefs} from '@atproto/api' 2 + import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' 1 3 import {z} from 'zod' 2 - import {useQuery, useMutation, useQueryClient} from '@tanstack/react-query' 3 - import {AppBskyLabelerDefs} from '@atproto/api' 4 4 5 - import {getAgent} from '#/state/session' 5 + import {STALE} from '#/state/queries' 6 6 import {preferencesQueryKey} from '#/state/queries/preferences' 7 - import {STALE} from '#/state/queries' 7 + import {getAgent} from '#/state/session' 8 8 9 9 export const labelerInfoQueryKey = (did: string) => ['labeler-info', did] 10 10 export const labelersInfoQueryKey = (dids: string[]) => [ 11 11 'labelers-info', 12 - dids.sort(), 12 + dids.slice().sort(), 13 13 ] 14 14 export const labelersDetailedInfoQueryKey = (dids: string[]) => [ 15 15 'labelers-detailed-info',