Atlantis theme layoutService injectioın causes memory leak
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
- Download the default Atlantis theme
- Try to inject layout service into app component
- open performance monitor in chrome and keep an eye on heap size and DOM nodes
- 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
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,