primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Atlantis theme layoutService injectioın causes memory leak

Open bartan34 opened this issue 2 years ago • 1 comments

Describe the bug

I am using the default atlantis-ng-17.0.0 theme. When I try to inject the layout service into the app component, it is causing some kind of memory leak because of the accumulation of the DOM nodes. I have tracked down to issue and find out that changeScale function that called inside the effect causing this issue.

Environment

macOS Sonoma 14.0

Reproducer

No response

Angular version

17.0.5

PrimeNG version

17.2.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.18.2

Browser(s)

Chrome 121

Steps to reproduce the behavior

  1. Download the default Atlantis theme
  2. Try to inject layout service into app component
  3. open performance monitor in chrome and keep an eye on heap size and DOM nodes
  4. Try to refresh the page couple times and navigate in the application see that heap size is not reducing

Expected behavior

After of couple refreshes and some time we should see decrease in heap size but it accumulates over time and stays high

bartan34 avatar Feb 09 '24 14:02 bartan34

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap?

Thanks a lot for your understanding! Best Regards,

mehmetcetin01140 avatar Dec 16 '24 12:12 mehmetcetin01140