Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for pagination stopOnSameToken option #534

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Apr 8, 2022

aws/aws-sdk-js-v3#3490

Add check for optional pagination halt condition of prevToken equalling nextToken.

In test output:

    const prevToken = token;
    token = page.nextToken;
    hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));

This depends on aws/aws-sdk-js-v3#3524

@kuhe kuhe requested a review from a team as a code owner April 8, 2022 19:00
@kuhe kuhe merged commit 34dad65 into smithy-lang:main Apr 25, 2022
@kuhe kuhe deleted the pagination-conditions branch April 25, 2022 21:07
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.

None yet

2 participants