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
fix(http): Run fetch request outside the angular zone #50981
Conversation
9f5b270
to
63d1537
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JeanMeche thanks for the fix
a13b479
to
b9994b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JeanMeche looks great, just a quick note to add a comment to document the context. Thank you.
Having the request run in the angular zone has the consequence of triggering the CD for every read of the response stream. This commit wraps the whole `doRequest` to run outside angular with every callback on the observer being called inside the zone. Fixes angular#50979.
|
This PR was merged into the repository by commit c5608e5. |
Includes an Angular 16 minor version update fixing an HTTP change detection thing which might impact our resolvers / some page loads' handovers angular/angular#50981
Having the request run in the angular zone has the consequence of triggering the CD for every read of the response stream. This commit wraps the whole `doRequest` to run outside angular with every callback on the observer being called inside the zone. Fixes angular#50979. PR Close angular#50981


Having the request run in the angular zone has the consequence of triggering the CD for every read of the response stream.
This commit wraps the whole
doRequestto run outside angular with every callback on the observer being called inside the zone.Fixes #50979.
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?