fix: use insertedAt for cursor when fetching list

close #1001
This commit is contained in:
Stephen Zhou 2024-10-18 09:00:58 +08:00
parent 30591f8415
commit e0278d2bf4
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ export const useEntries = ({
useAuthInfiniteQuery(entries.entries({ feedId, inboxId, listId, view, read, isArchived }), {
enabled: feedId !== undefined || inboxId !== undefined || listId !== undefined,
getNextPageParam: (lastPage) =>
inboxId
inboxId || listId
? lastPage.data?.at(-1)?.entries.insertedAt
: lastPage.data?.at(-1)?.entries.publishedAt,
initialPageParam: undefined,