Skip to content

(animate.leave) produces memory leaks #66255

@bukharin

Description

@bukharin

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

If a component has (animate.leave) hook - it's stuck in allLeavingAnimations after parent destroys.

Please see reproduction example

Image

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-fiddle-gqwykbhz-4qecuwtv?file=src%2Fapp%2Fleak.component.ts

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)


Anything else?

No response

Metadata

Metadata

Assignees

Labels

area: coreIssues related to the framework runtimecore: animationsIssues related to `animate.enter` and `animate.leave`state: has PR

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions