Why does this cursor pagination helper repeat the last item on the next page?

sora
Mon, 06 Apr 2026 20:19:53 +0000

Thanks everyone, this helped me pin down the cursor boundary issue. The > change plus handling findIndex returning -1 fixed the duplicate page bug.

Sora