about summary refs log tree commit diff
path: root/src/state/queries/profile-followers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/queries/profile-followers.ts')
-rw-r--r--src/state/queries/profile-followers.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/queries/profile-followers.ts b/src/state/queries/profile-followers.ts
index d7dfe25c6..d0cbccaf5 100644
--- a/src/state/queries/profile-followers.ts
+++ b/src/state/queries/profile-followers.ts
@@ -6,7 +6,7 @@ import {
   useInfiniteQuery,
 } from '@tanstack/react-query'
 
-import {getAgent} from '#/state/session'
+import {useAgent} from '#/state/session'
 
 const PAGE_SIZE = 30
 type RQPageParam = string | undefined
@@ -15,6 +15,7 @@ const RQKEY_ROOT = 'profile-followers'
 export const RQKEY = (did: string) => [RQKEY_ROOT, did]
 
 export function useProfileFollowersQuery(did: string | undefined) {
+  const {getAgent} = useAgent()
   return useInfiniteQuery<
     AppBskyGraphGetFollowers.OutputSchema,
     Error,