De-closure my-blocked-accounts
This commit is contained in:
@@ -17,14 +17,16 @@ export function useMyBlockedAccountsQuery() {
|
|||||||
>({
|
>({
|
||||||
staleTime: STALE.MINUTES.ONE,
|
staleTime: STALE.MINUTES.ONE,
|
||||||
queryKey: RQKEY(),
|
queryKey: RQKEY(),
|
||||||
async queryFn({pageParam}: {pageParam: RQPageParam}) {
|
queryFn: myBlockedAccountsQueryFn,
|
||||||
const res = await getAgent().app.bsky.graph.getBlocks({
|
|
||||||
limit: 30,
|
|
||||||
cursor: pageParam,
|
|
||||||
})
|
|
||||||
return res.data
|
|
||||||
},
|
|
||||||
initialPageParam: undefined,
|
initialPageParam: undefined,
|
||||||
getNextPageParam: lastPage => lastPage.cursor,
|
getNextPageParam: lastPage => lastPage.cursor,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function myBlockedAccountsQueryFn({pageParam}: {pageParam: RQPageParam}) {
|
||||||
|
const res = await getAgent().app.bsky.graph.getBlocks({
|
||||||
|
limit: 30,
|
||||||
|
cursor: pageParam,
|
||||||
|
})
|
||||||
|
return res.data
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user