Skip to content

fix: respect flag in cursor pagination - #284

Open
anuuragg wants to merge 1 commit into
dodopayments:mainfrom
anuuragg:fix/cursor-pagination-done-flag
Open

fix: respect flag in cursor pagination#284
anuuragg wants to merge 1 commit into
dodopayments:mainfrom
anuuragg:fix/cursor-pagination-done-flag

Conversation

@anuuragg

@anuuragg anuuragg commented Sep 10, 2026

Copy link
Copy Markdown

next_page_info() only checked whether was truthy, ignoring the field the API documents as the authoritative signal that pagination is complete. If a response ever returns done=true with a non-empty iterator, list() calls would keep fetching an extra page (or loop) instead of stopping.
src

next_page_info() only checked whether  was truthy, ignoring
the  field the API documents as the authoritative signal that
pagination is complete. If a response ever returns done=true with a
non-empty iterator, list() calls would keep fetching an extra page
(or loop) instead of stopping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant