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

ApolloClient does not delay the application becoming stable #2252

Merged
merged 3 commits into from
May 2, 2024

Conversation

PowerKiKi
Copy link
Collaborator

Otherwise, we might encounter a delay of 10 seconds, and this might lead to suboptimal experience as described in https://angular.io/errors/NG0506

Fixes #2251

Copy link

changeset-bot bot commented May 2, 2024

🦋 Changeset detected

Latest commit: 7f97c31

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
apollo-angular Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented May 2, 2024

💻 Website Preview

The latest changes are available as preview in: https://37055265.apollo-angular.pages.dev

Otherwise, we might encounter a delay of 10 seconds, and this might lead
to suboptimal experience as described in https://angular.io/errors/NG0506

Fixes #2251
Copy link
Contributor

github-actions bot commented May 2, 2024

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
apollo-angular 7.0.1-alpha-20240502101030-7f97c31595924a257b5f3b3fa9699a7ecf1505b9 npm ↗︎ unpkg ↗︎

@PowerKiKi
Copy link
Collaborator Author

@diesieben07, thanks for the reproduction case. I can see from https://angular.io/errors/NG0506 that #2251 unnecessarily delays DOM clean up. While I am not quite sure this could have such an catastrophic effect, we might as well avoid it by following your suggestion.

You would you mind testing the alpha release in your real-world project and report if everything goes smoothly via npm i apollo-angular@7.0.1-alpha-20240502094658-7ac65bdaeddc99e9741afc26b254d357f35d248c ?

@diesieben07
Copy link

@PowerKiKi Thank you for the prompt fix. The problem no longer occurs in our (internal) real world project with npm i apollo-angular@7.0.1-alpha-20240502094658-7ac65bdaeddc99e9741afc26b254d357f35d248c.
So this PR fixes the problem 👍

Because ApolloClient is created outside of NgZone
@PowerKiKi PowerKiKi enabled auto-merge (rebase) May 2, 2024 10:10
@PowerKiKi PowerKiKi merged commit abc57ca into master May 2, 2024
14 checks passed
@PowerKiKi PowerKiKi deleted the powerkiki branch May 2, 2024 10:14
@PowerKiKi
Copy link
Collaborator Author

Released in https://github.com/kamilkisiela/apollo-angular/releases/tag/apollo-angular%407.0.1

@diesieben07
Copy link

Thank you, works great!

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.

apollo-angular prevents Zone from becoming stable
2 participants