Skip to content

fix(http): Delay stabilization until next app synchronization#60656

Closed
atscott wants to merge 1 commit intoangular:mainfrom
atscott:httpdelaystabilization
Closed

fix(http): Delay stabilization until next app synchronization#60656
atscott wants to merge 1 commit intoangular:mainfrom
atscott:httpdelaystabilization

Conversation

@atscott
Copy link
Copy Markdown
Contributor

@atscott atscott commented Mar 31, 2025

This commit updates the HttpClient internals to use the public PendingTasks API which delays stability until the next ApplicationRef.tick instead of causing the application to become stable synchronously. This is helpful to resolve unexpected issues where computations happen as follow-up work to the value coming out of the response.

fixes #59352

@atscott atscott added the requires: TGP This PR requires a passing TGP before merging is allowed label Mar 31, 2025
@angular-robot angular-robot bot added the area: common/http Issues related to HTTP and HTTP Client label Mar 31, 2025
@ngbot ngbot bot added this to the Backlog milestone Mar 31, 2025
@atscott atscott force-pushed the httpdelaystabilization branch from 4441430 to d68180c Compare April 2, 2025 20:53
@atscott atscott marked this pull request as ready for review April 2, 2025 20:53
@pullapprove pullapprove bot removed the requires: TGP This PR requires a passing TGP before merging is allowed label Apr 2, 2025
@atscott atscott requested a review from alxhub April 2, 2025 20:53
@atscott atscott added the target: minor This PR is targeted for the next minor release label Apr 2, 2025
This commit updates the `HttpClient` internals to use the public
`PendingTasks` API which delays stability until the next
`ApplicationRef.tick` instead of causing the application to become
stable synchronously. This is helpful to resolve unexpected issues where
computations happen as follow-up work to the value coming out of the
response.

fixes angular#59352
@atscott atscott force-pushed the httpdelaystabilization branch from d68180c to 135ee4e Compare April 2, 2025 21:08
@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Apr 2, 2025
@atscott atscott modified the milestones: Backlog, v20 candidates Apr 3, 2025
@atscott
Copy link
Copy Markdown
Contributor Author

atscott commented Apr 3, 2025

This PR was merged into the repository by commit 5795e03.

The changes were merged into the following branches: main

@atscott atscott closed this in 5795e03 Apr 3, 2025
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: common/http Issues related to HTTP and HTTP Client target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zoneless SSR: usage of forkJoin to get multiple responses prevents server rendering

2 participants