Update context for pagination duplication potential.

This commit is contained in:
Chad Curtis 2025-09-01 21:01:19 +00:00
parent 0d327372fe
commit cf64f2ca83

View File

@ -328,7 +328,7 @@ function useInfinitePosts() {
},
getNextPageParam: (lastPage) => {
if (lastPage.length === 0) return undefined;
return lastPage[lastPage.length - 1].created_at;
return lastPage[lastPage.length - 1].created_at - 1; // Subtract 1 since 'until' is inclusive
},
initialPageParam: undefined,
});