angular/packages/core
Andrew Scott 0147e0b85a fix(core): exhaustive checkNoChanges should only do a single pass (#55839)
Because exhaustive checks traverse the whole tree regardless of the
dirty state, it breaks some expectations around how change detection
should be running. When a view has transplanted views, it
unconditionally marks all ancestors for traversal, assuming this is fine
because the loop will just traverse them and find nothing dirty.
However, exhaustive checkNoChanages actually refreshes everything during
traversal.

This update ensures the exhaustive check only does a single pass and
also prevents some unnecessary marking of transplanted views for
refresh since we know they're going to be reached.

PR Close #55839
2024-05-17 12:24:36 -07:00
..
global docs(docs-infra): Add missing API entries to ADEV (#54530) 2024-02-21 16:41:33 +00:00
primitives refactor(core): Add an ActionResolver option to Dispatcher. (#55757) 2024-05-14 15:16:26 -07:00
reference-manifests build: add target to generate api manifest (#52472) 2023-11-02 11:00:59 -07:00
rxjs-interop refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:21 -07:00
schematics fix(migrations): migrate HttpClientTestingModule in test modules (#55803) 2024-05-15 08:45:31 -07:00
src fix(core): exhaustive checkNoChanges should only do a single pass (#55839) 2024-05-17 12:24:36 -07:00
test fix(core): exhaustive checkNoChanges should only do a single pass (#55839) 2024-05-17 12:24:36 -07:00
testing refactor(core): calling autoDetectChanges without params works for zoneless (#55800) 2024-05-15 08:46:30 -07:00
BUILD.bazel build: switch from rollup and terser to esbuild for creating contract bundle (#55705) 2024-05-13 12:49:30 -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