De-closure my-muted-accounts

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