You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Downgraded Components are not garbage collected #39911
P4A relatively minor issue that is not relevant to core functionsarea: upgradeIssues related to AngularJS → Angular upgrade APIsmemory leakIssue related to a memory leakstate: has PR
The issue may be caused by package @angular/upgrade
Is this a regression?
No.
Description
I have a hybrid app consisting of a main Angular CLI app that integrates legacy AngularJS templates via custom bundling and UI-Router. When I use a downgraded Angular component in an AngularJS template and toggle the rendering of this component with ng-if, let's say 5 times, then I can find 5 instances of the component in the heap snapshot.
This doesn't happen in a pure AngularJS template nor in a pure Angular template.
P4A relatively minor issue that is not relevant to core functionsarea: upgradeIssues related to AngularJS → Angular upgrade APIsmemory leakIssue related to a memory leakstate: has PR
Activity
[-]Downgraded Components are not destroyed[/-][+]Downgraded Components are not garbage collected[/+]fix(upgrade): avoid memory leak when removing downgraded components (#…
angular-automatic-lock-bot commentedon Jan 8, 2021
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.