fix: inbox fetch next page

This commit is contained in:
DIYgod
2025-02-11 20:40:44 +08:00
parent a80c248194
commit 793b19d3cf
+1 -1
View File
@@ -150,7 +150,7 @@ export const useEntries = ({
{
enabled: feedId !== undefined || inboxId !== undefined || listId !== undefined,
getNextPageParam: (lastPage) =>
inboxId || listId
listId
? lastPage.data?.at(-1)?.entries.insertedAt
: lastPage.data?.at(-1)?.entries.publishedAt,
initialPageParam: undefined,