When we enable the “enableResize” property, it is observed that the memory increases by approximately 50MB.
Sample: https://stackblitz.com/edit/angular-9a6kdk?file=src%2fdialog%2fenableresizedialog%2ferdialog.html,src%2fdialog%2fdisableresizedialog%2fdrdialog.html,src%2fdialog%2fdialog.page.ts
Replication Procedure:
- Run the sample.
- Opens the memory tab and before you start clicking, take a memory snapshot.
- Click the [Not Allow Resize Dialog] button to open the dialog and close the dialog using escape key for 10 times, click [collect garbage], and take a memory snapshot again. At this time, it is found that the memory has increased by about 2MB-5MB. This is normal.
- Click the [Allow Resize Dialog] button to open the dialog and close the dialog using escape key for 10 times, click [collect garbage], and take a memory snapshot again. At this time, it is found that the memory has increased by about 50MB.
Expected behavior: Enabling the “enableResize” property should not result in high memory consumption.
Actual behavior: Enabling the “enableResize” property leads to high memory consumption