angular/goldens/public-api/core
Kristiyan Kostadinov 2f347ef8fc fix(core): provide flag to opt into manual cleanup for after render hooks (#57917)
Adds a `manualCleanup` flag to `afterRender` and `afterNextRender`, similarly to `effect`. The reason is that currently if the hook is created outside of an injection context, it requires an injector to be passed in. In some cases that injector might be an injector that is never destroyed (e.g. `EnvironmentInjector`) which can give a false sense of security users thinking that the hook will be cleaned up automatically. We fell into this in the CDK which caused a memory leak (see https://github.com/angular/components/pull/29709). With the `manualCleanup` option users explicitly opt into cleaning the hook up themselves.

PR Close #57917
2024-09-26 14:20:55 -07:00
..
primitives refactor(core): Remove clickmod support from Angular. (#57201) 2024-08-02 14:20:53 +00:00
rxjs-interop fix(core): rename the equality function option in toSignal (#56769) 2024-07-08 09:34:07 -07:00
testing feat(core): Add 'flush' parameter option to fakeAsync to flush after the test (#57239) 2024-08-05 17:46:04 +00:00
errors.api.md refactor(core): integrate let instructions into the runtime (#56527) 2024-06-26 08:48:31 -07:00
global_utils.api.md build: update to latest dev infra code (#56128) 2024-05-28 14:42:31 +02:00
index.api.md fix(core): provide flag to opt into manual cleanup for after render hooks (#57917) 2024-09-26 14:20:55 -07:00