angular/packages/common/http/src
Andrew Kushnir 7f6f5f95ea refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834)
This commit removes a custom `whenStable` util in favor of standard `ApplicationRef.whenStable` API.

There is also an important different between the custom `whenStable` function and `ApplicationRef.whenStable` implementation: the `whenStable` was caching the "stable" promise on per-ApplicationRef basis, which resulted in unexpected behavior with zoneless, when some code ended up getting a stale resolved promise, when an application was not stable yet, this causing order of operations issues. This commit also has an extra test that covers that case.

PR Close #58834
2024-11-25 15:25:10 +00:00
..
backend.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
client.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
context.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
errors.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
fetch.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
headers.ts fix(http): preserve all headers from Headers object (#57802) 2024-10-01 13:48:35 +00:00
interceptor.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
jsonp.ts fix(http): cleanup JSONP script listeners once loading completed (#57877) 2024-10-01 08:08:40 +00:00
module.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
params.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
private_export.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
provider.ts feat(http): promote withRequestsMadeViaParent to stable. (#58221) 2024-10-17 10:14:38 +00:00
request.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
response.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
transfer_cache.ts refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
xhr.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
xsrf.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00