angular/packages/core
Andrew Scott 7e89753eef fix(core): render hooks should not specifically run outside the Angular zone (#55399)
The timing of render hook execution is almost entirely identical to
`ngZone.onMicrotaskEmpty`. Developers working towards zoneless
compatibility will need to migrate `onMicrotaskEmpty` calls to use
`afterNextRender`/`afterRender` instead. This, however, would lead to
confusing issues if there are promises in the callbacks because
`onMicrotaskEmpty` emits inside the Angular zone while render hooks
execute outside today. This is problematic because it's not documented
and does not produce any notification or error message when async work
is done inside the hooks that requires change detection. Instead, change detection
simply does not run, and this behavior has proven to be surprising to
developers who are used to ZoneJS change detection behavior.

fixes #55299

PR Close #55399
2024-04-25 09:06:34 -07:00
..
global docs(docs-infra): Add missing API entries to ADEV (#54530) 2024-02-21 16:41:33 +00:00
primitives refactor(core): disable property renaming for the event dispatch script (#55502) 2024-04-24 10:32:35 -07:00
reference-manifests build: add target to generate api manifest (#52472) 2023-11-02 11:00:59 -07:00
rxjs-interop docs: Use new Urls to drop the docs url mapper (#55043) 2024-04-09 12:23:09 -07:00
schematics feat(migrations): Migration schematics for HttpClientModule (#54020) 2024-04-23 12:12:31 -07:00
src fix(core): render hooks should not specifically run outside the Angular zone (#55399) 2024-04-25 09:06:34 -07:00
test fix(core): resolve error for multiple component instances that use fallback content (#55478) 2024-04-25 09:04:01 -07:00
testing fix(core): DeferBlockFixture.render should not wait for stability (#55271) 2024-04-23 15:12:39 -07:00
BUILD.bazel refactor(core): Replay events from the event contract using the dispatcher. (#55467) 2024-04-23 16:08:36 -07:00
index.ts refactor(core): made comment structure consistent in index.ts (#43684) 2021-10-21 18:39:58 +00:00
package.json build: make JSA contract binary accessible (#55361) 2024-04-17 10:37:31 +02:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00