angular/packages/core/test
Kristiyan Kostadinov 46bafb0b0a fix(core): clean up afterRender after it is executed (#58119)
We stop tracking `afterRender` hooks as soon as they execute, but their on destroy callbacks stay registered until either the injector is destroyed or the user calls `destroy` manually. This was leading to memory leaks in the `@defer` triggers based on top of `afterRender` when placed inside long-lived views, because the callback would execute, but its destroy logic was waiting for the view to be destroyed.

These changes resolve the issue by destroying the `AfterRenderRef` once it is executed.

PR Close #58119
2024-10-08 13:27:07 -07:00
..
acceptance fix(core): clean up afterRender after it is executed (#58119) 2024-10-08 13:27:07 -07:00
animation refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
authoring refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
bundling fix(common): prevent warning about oversize image twice (#58021) 2024-10-02 11:46:18 +00:00
change_detection refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
compiler refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
debug refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
di refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
dom refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
hydration refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
i18n refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
linker refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
metadata refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
playground/zone-signal-input refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
reflection refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
render3 refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
sanitization refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
signals refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
strict_types refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
testability refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
util refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
zone refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
application_config_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
application_init_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
application_module_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
application_ref_integration_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
application_ref_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
BUILD.bazel test(core): Add scheduler in tests to tie into ApplicationRef.isStable (#53579) 2024-01-09 16:05:31 -08:00
change_detection_scheduler_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
component_fixture_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
defer_fixture_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
dev_mode_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
directive_lifecycle_integration_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
error_handler_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
event_emitter_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
fake_async_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
forward_ref_integration_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
runtime_error_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
test_bed_effect_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
test_bed_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
transfer_state_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00
util_spec.ts refactor: update license text to point to angular.dev (#57902) 2024-09-24 15:28:46 +02:00