angular/packages/core/test/bundling/hydration
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
..
BUILD.bazel test(core): Add hydration symbols test (#49955) 2023-04-24 09:57:52 -07:00
bundle.golden_symbols.json refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
index.html refactor: standardize doctype declaration to <!DOCTYPE html> (#51052) 2024-02-01 19:29:46 +00:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
treeshaking_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00