Your SQL Pagination Can Repeat Rows. A Cursor Fixes Only Part of It.
Page one looks right. You click Load more, and the last item appears again. Someone deletes a record, and now an item disappears between pages instead. This can happen with a perfectly valid ORDER BY. The problem is that OFFSET…