angular/packages/core
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
..
global refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
primitives fix(core): prevent errors on contract cleanup (#58614) 2024-11-12 17:25:50 +00:00
reference-manifests build: add target to generate api manifest (#52472) 2023-11-02 11:00:59 -07:00
rxjs-interop fix(core): avoid breaking change with apps using rxjs 6.x (#58341) 2024-10-24 16:17:48 -07:00
schematics fix(migrations): fix provide-initializer migration when using useFactory (#58518) 2024-11-21 20:59:35 +00:00
src refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
test refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
testing refactor(core): clean up standalone flag (#58478) 2024-11-06 07:01:25 +01:00
BUILD.bazel refactor(platform-server): Add an ssr benchmark setup. (#57647) 2024-10-04 10:45:22 -07:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json build: update zone.js peer dependency for core package to 0.15.0 (#57431) 2024-08-21 13:17:52 -07:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00