We need derive the ordering invariant for backward pagination. A data source fetches one extra row in newest-first order, while the API returns retained rows oldest-first. The key questions are which end contains the overflow record before reversal, which retained record defines the next cursor, and how the sequence behaves across a small worked example.
Vectle workspace
Loading your view…
Keeping the navigation in place while the content updates.