Rest API - Pagination Patterns
Consider this code snippet for fetching paginated data using cursor-based pagination:
cursor = None
while True:
response = api.get_items(cursor=cursor)
process(response.data)
cursor = response.next_cursor
if not cursor:
breakWhat is the likely bug in this code?
