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

[ApolloPagination] Make isLoadingAll publicly accessible, remove special logic #371

Closed
wants to merge 5 commits into from

Conversation

Iron-Ham
Copy link
Contributor

@Iron-Ham Iron-Ham commented May 25, 2024

Caution

This is a breaking change!

This pull request introduces the isLoadingAll property to both GraphQLQueryPager and AsyncGraphQLQueryPager. Additionally, it removes the logic in the AsyncGraphQLQueryPagerCoordinator's subscribe function which intentionally does not forward updates to subscribers while loadingAll.

The existing logic was built on the assumption that callers of loadAll will not want any updates until we can furnish all data. However, with a public isLoadingAll property, consumers of the API can manage this behavior themselves. This does mean that users will receive each page as it comes in via the loadAll function unless they specifically want to defer the update (through use of the isLoadingAll property).

Copy link

netlify bot commented May 25, 2024

👷 Deploy request for apollo-ios-docc pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 0d6ddff

Copy link

netlify bot commented May 25, 2024

👷 Deploy request for eclectic-pie-88a2ba pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 0d6ddff

@Iron-Ham Iron-Ham changed the title [1/2] [ApolloPagination] Make isLoadingAll publicly accessible [ApolloPagination] Make isLoadingAll publicly accessible May 25, 2024
@Iron-Ham Iron-Ham changed the title [ApolloPagination] Make isLoadingAll publicly accessible [ApolloPagination] Make isLoadingAll publicly accessible, remove special logic around isLoadingAl May 25, 2024
@Iron-Ham Iron-Ham changed the title [ApolloPagination] Make isLoadingAll publicly accessible, remove special logic around isLoadingAl [ApolloPagination] Make isLoadingAll publicly accessible, remove special logic around isLoadingAll May 25, 2024
@Iron-Ham Iron-Ham changed the title [ApolloPagination] Make isLoadingAll publicly accessible, remove special logic around isLoadingAll [ApolloPagination] Make isLoadingAll publicly accessible, remove special logic May 25, 2024
@AnthonyMDev
Copy link
Contributor

Let's continue to discuss the desired behavior for this in #3387 before deciding on how to proceed here.

@calvincestari
Copy link
Member

@Iron-Ham - is this still dependent on work being done in other issues/PRs, is there anything you need from us here?

@Iron-Ham
Copy link
Contributor Author

@calvincestari I think this is still the right thing to do – but I can re-open this after #428 is merged.

@Iron-Ham Iron-Ham closed this Jul 29, 2024
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.

3 participants