fix(pagination): handle empty page return case #15

Merged
argoyle merged 1 commits from fix-pagination-empty-page-handling into main 2025-06-16 10:08:31 +00:00
argoyle commented 2025-06-16 10:05:03 +00:00 (Migrated from gitlab.com)

Adds a check for empty pages in the pagination logic to return a
nil slice and empty PageInfo when there are no items to display.
Updates tests to verify the behavior when no more items are
available, ensuring robustness in pagination functionality.

Adds a check for empty pages in the pagination logic to return a nil slice and empty PageInfo when there are no items to display. Updates tests to verify the behavior when no more items are available, ensuring robustness in pagination functionality.
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-06-16 10:05:11 +00:00
argoyle (Migrated from gitlab.com) merged commit into main 2025-06-16 10:08:31 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unboundsoftware/pagination#15