You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The v20 PrimeNG AccordionContent Component has a memory leak.
This issue was fixed in PrimeNG v19.1.3 (Closed Issue #18296), but the changes (PR #18297) never made it to v20.
The video listed below demonstrates the issue.
Video Notes:
At the start of the video, I refresh the page. This clears the page's memory
In the Video I navigate away from the Accordion Demo Page 5 times
I use the Chrome Development Tool's Memory Profiler to take a snapshot of the browsers JavaScript VM memory (profiling type = detached elements)
Chrome has detected 5 detached elements
At the end of the demo I navigate to the "about page" because this is a very simple page and sometimes Chrome's Memory Profile will identify additional detached elements that would have been removed during the execution of a page's destroy methods
v20AccordionMemoryLeak.mov
See PR #18297 for a video demonstrating no memory leak, which resulted after implementing the PR #18297 fix.
Pull Request Link
No response
Reason for not contributing a PR
Lack of time
Unsure how to implement the fix/feature
Difficulty understanding the codebase
Other
Other Reason
I have not generated a PR since PR #18297 originally fixed this problem in v19.1.3 and can be used as a "suggestion" on how to fix this current memory leak.
Describe the bug
The v20 PrimeNG AccordionContent Component has a memory leak.
This issue was fixed in PrimeNG v19.1.3 (Closed Issue #18296), but the changes (PR #18297) never made it to v20.
The video listed below demonstrates the issue.
Video Notes:
v20AccordionMemoryLeak.mov
See PR #18297 for a video demonstrating no memory leak, which resulted after implementing the PR #18297 fix.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
I have not generated a PR since PR #18297 originally fixed this problem in v19.1.3 and can be used as a "suggestion" on how to fix this current memory leak.
Reproducer
https://primeng.org/accordion
Environment
N/A
Angular version
20
PrimeNG version
v19
Node version
n/a
Browser(s)
all browsers
Steps to reproduce the behavior
-- this will reset the page's memory
-- only use links provided in the PrimeNG demo to navigate
Expected behavior
No detached nodes
No memory leak