angular/packages/common/src
Andrew Kushnir ea0bf74e31 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
..
directives refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
i18n refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
location docs: correct HashLocationStrategy example url (#57908) 2024-09-26 14:20:00 -07:00
navigation refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
pipes feat(common): disable keyvalue sorting using null compareFn (#57487) 2024-10-16 18:18:19 +00:00
common.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
common_module.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
cookie.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
dom_adapter.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
dom_tokens.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
platform_id.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
version.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
viewport_scroller.ts refactor: add @__PURE__ next to @pureOrBreakMyCode for improved bundler compatibility (#58297) 2024-10-28 12:26:06 -07:00
xhr.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00