De-closure my-muted-accounts

This commit is contained in:
Paul Frazee
2023-11-28 17:01:57 -08:00
parent ea3ed8193c
commit eee30792b3
+9 -7
View File
@@ -17,14 +17,16 @@ export function useMyMutedAccountsQuery() {
>({
staleTime: STALE.MINUTES.ONE,
queryKey: RQKEY(),
async queryFn({pageParam}: {pageParam: RQPageParam}) {
const res = await getAgent().app.bsky.graph.getMutes({
limit: 30,
cursor: pageParam,
})
return res.data
},
queryFn,
initialPageParam: undefined,
getNextPageParam: lastPage => lastPage.cursor,
})
}
async function queryFn({pageParam}: {pageParam: RQPageParam}) {
const res = await getAgent().app.bsky.graph.getMutes({
limit: 30,
cursor: pageParam,
})
return res.data
}