angular/packages/platform-browser/animations/src
Kristiyan Kostadinov 925dd73c7e perf(platform-browser): resolve memory leak when using animations with shadow DOM (#47903)
`AnimationRendererFactory` maintains a map between a renderer delegate and the animations renderer it corresponds to, but the renderers are never removed from the map. This leads to memory leaks when used with the `ShadowDom` view encapsulation, because the specific renderer keeps a references to its shadow root which in turn references all the elements in the view.

These changes resolve the leak by clearing the reference when the animations renderer is destroyed.

Fixes #47892.

PR Close #47903
2022-11-01 04:46:08 -07:00
..
animation_builder.ts fix(platform-browser): update started state on reset (#41608) 2021-05-25 20:28:41 +00:00
animation_renderer.ts perf(platform-browser): resolve memory leak when using animations with shadow DOM (#47903) 2022-11-01 04:46:08 -07:00
animations.ts feat(animations): add provideAnimations() and provideNoopAnimations() functions (#46793) 2022-07-12 17:58:47 +00:00
module.ts docs: declare Standalone APIs as stable (#47754) 2022-10-17 12:15:20 +02:00
private_export.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
providers.ts fix(animations): cleanup DOM elements when the root view is removed (#45143) 2022-06-23 13:52:58 -07:00