igniteui-angular
igniteui-angular copied to clipboard
igx-grid memory leak when users click pagination buttons
Description
The igx-grid
has a memory leaking problem. It happens when users click the paginator buttons.
- igniteui-angular version: 17.1.4
- browser: Microsoft Edge Version 122.0.2365.92 (Official Build) (64-bit)
Steps to reproduce
- Open the browser's Dev Tools / Memory tab.
- Take the 1st memory snapshot (don't forget to click the "Collect garbage" button before taking.)
- Navigate to the page with an
igx-grid
component with a pagenator. - Click on the "next page" button of the pagenator.
- Go back to the home page.
- Take the 2nd memory snapshot (remember to click the "Collect garbage" button before taking it).
- In the Dev Tools Memory tab, Choose "Comparison" in the "Perspective" dropdown and input "igx" into the "Class filter" text field.
https://github.com/IgniteUI/igniteui-angular/assets/102948935/1ea9cfc5-d00a-4d87-bc03-0d73f58d888b
Result
You will see there are some objects with the name "igx" that were added but not deleted in the "Comparison" view of the Memory tab.
Expected result
The "Delta" column for all objects with the name "igx" should be zero in the "Comparison" view of the Memory tab.