Angular 17 @for has memory leak #55316
Labels
area: core
Issues related to the framework runtime
core: control flow
Issues related to the built-in control flow (@if, @for, @switch)
memory leak
Issue related to a memory leak
needs reproduction
This issue needs a reproduction in order for the team to investigate further
Milestone
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
I have several lists of size 20 - 100 using mat-select that are auto refreshed every 30 seconds with a small amount of new data added each time. When using @for, after several auto-refreshes the browser begins to exponentially increase ram usage to the point that the web page becomes inoperable. When I replace @for with the previous *ngFor the problem goes away. I've upgraded to package 17.3.4 and the problem still exists.
Please provide a link to a minimal reproduction of the bug
See above
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)No response
Anything else?
The ts code is using promises to get various lists and process data in the order needed. That said I had no issues with function/memory until I migrated the html to use the latest loop syntax @for.
The text was updated successfully, but these errors were encountered: