-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Closed
Copy link
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
A similar bug to this has been logged here: angular/angular#65265
When creating instances of objects into memory that are used by the virtual scroller they are not cleared from memory when being replaced. I have also verified the issue persists when making use of a production build
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/virtual-scroll-memory-test-angular
Please provide the exception or error you saw
Generating a user leads up to old User references still being held in memory when checking the Heap Snapshot. Destroying the virtual scroller helps ("Hide") button
Please provide the environment you discovered this bug in (run ng version)
Angular CLI : 21.0.3
Angular : 21.0.4
Node.js : 24.11.1
Package Manager : npm 11.3.0
Operating System : win32 x64
┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build │ 21.0.3 │ ^21.0.3 │
│ @angular/cdk │ 21.0.3 │ ^21.0.3 │
│ @angular/cli │ 21.0.3 │ ^21.0.3 │
│ @angular/common │ 21.0.4 │ ^21.0.4 │
│ @angular/compiler │ 21.0.4 │ ^21.0.4 │
│ @angular/compiler-cli │ 21.0.4 │ ^21.0.4 │
│ @angular/core │ 21.0.4 │ ^21.0.4 │
│ @angular/forms │ 21.0.4 │ ^21.0.4 │
│ @angular/platform-browser │ 21.0.4 │ ^21.0.4 │
│ @angular/router │ 21.0.4 │ ^21.0.4 │
│ rxjs │ 7.8.2 │ ~7.8.0 │
│ typescript │ 5.9.3 │ ~5.9.2 │
└───────────────────────────┴───────────────────┴───────────────────┘
Anything else?

Metadata
Metadata
Assignees
Labels
No labels