From e8b47751660e24a6bd24941b6cb6b0ee79ffad3c Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 19 May 2024 13:44:27 +0100 Subject: fix: Fix missing bookmarks during pagination if they got created in the same second. Fixes #140 --- apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'apps/mobile/components/bookmarks') diff --git a/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx b/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx index e69b5319..54288362 100644 --- a/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx +++ b/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx @@ -21,10 +21,13 @@ export default function UpdatingBookmarkList({ error, fetchNextPage, isFetchingNextPage, - } = api.bookmarks.getBookmarks.useInfiniteQuery(query, { - initialCursor: null, - getNextPageParam: (lastPage) => lastPage.nextCursor, - }); + } = api.bookmarks.getBookmarks.useInfiniteQuery( + { ...query, useCursorV2: true }, + { + initialCursor: null, + getNextPageParam: (lastPage) => lastPage.nextCursor, + }, + ); if (error) { return {JSON.stringify(error)}; -- cgit v1.2.3-70-g09d2