1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2022-12-31 14:00:52 +01:00
parent 65e9f41a3b
commit eb385b8872
3 changed files with 85 additions and 16 deletions

View File

@ -55,7 +55,7 @@ const queryFunctionToot = async ({ queryKey, meta }: QueryFunctionContext<QueryK
statuses[index]._level = (repliedLevel || 0) + 1
}
return { body: statuses, highlightIndex }
return { pages: [{ body: statuses }], highlightIndex }
}
const useTootQuery = ({
@ -64,7 +64,7 @@ const useTootQuery = ({
}: QueryKeyTimeline[1] & {
options?: UseQueryOptions<
{
body: (Mastodon.Status & { _level: number })[]
pages: { body: (Mastodon.Status & { _level: number })[] }[]
highlightIndex: number
},
AxiosError