angular/packages/core/src/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
..
annotate.ts refactor(core): make lView[Injector] non-nullable (#58805) 2024-11-25 15:24:40 +00:00
api.ts refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
cleanup.ts fix(core): Prevents race condition of cleanup for incremental hydration (#58722) 2024-11-21 21:39:37 +00:00
compression.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
error_handling.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
event_replay.ts refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
i18n.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
interfaces.ts refactor(core): moves incremental hydration codebase to better locations (#58616) 2024-11-12 22:25:27 +00:00
node_lookup_utils.ts refactor(core): moves incremental hydration codebase to better locations (#58616) 2024-11-12 22:25:27 +00:00
skip_hydration.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tokens.ts refactor(core): Eliminate recursion in incremental hydration (#58419) 2024-10-31 11:22:58 +01:00
utils.ts fix(core): Prevents race condition of cleanup for incremental hydration (#58722) 2024-11-21 21:39:37 +00:00
views.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00