about summary refs log tree commit diff
path: root/src/state/queries/labeler.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-06-26 09:39:34 +0300
committerGitHub <noreply@github.com>2025-06-25 23:39:34 -0700
commite5f9377a691ef899e755d9611eafa49cbce8ec46 (patch)
tree237714f33ac33eee44dc6acd24b11d1127d76025 /src/state/queries/labeler.ts
parent954e7d2a89ac3e95abda3667ac707156afbdfbf0 (diff)
downloadvoidsky-e5f9377a691ef899e755d9611eafa49cbce8ec46.tar.zst
Virtualise labeler list (#8566)
* use flatlist for labeler list

* use key extractor

* dedupe `labelValues`

* add comment
Diffstat (limited to 'src/state/queries/labeler.ts')
-rw-r--r--src/state/queries/labeler.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/queries/labeler.ts b/src/state/queries/labeler.ts
index 53e923a85..4eddb27f4 100644
--- a/src/state/queries/labeler.ts
+++ b/src/state/queries/labeler.ts
@@ -1,4 +1,4 @@
-import {AppBskyLabelerDefs} from '@atproto/api'
+import {type AppBskyLabelerDefs} from '@atproto/api'
 import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
 import {z} from 'zod'
 
@@ -41,7 +41,7 @@ export function useLabelerInfoQuery({
     queryKey: labelerInfoQueryKey(did as string),
     queryFn: async () => {
       const res = await agent.app.bsky.labeler.getServices({
-        dids: [did as string],
+        dids: [did!],
         detailed: true,
       })
       return res.data.views[0] as AppBskyLabelerDefs.LabelerViewDetailed