mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
Update context for pagination duplication potential.
This commit is contained in:
1 parent
0d327372fe
commit
cf64f2ca83
1 file changed
+1
-1
@@ -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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user