-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Memory Leak in Menu #3164
Comments
Would be great to have a slice for slice test scenario for this to compare fixed against. You wouldn't happen to have set something like that up in order to track this down? |
@Westbrook I've added a playground where it can be reproduced and steps of how to find the leak. |
Hi @Westbrook , Can I kindly ask for an update on this ticket? One of our components is using Menu and we see memory leaks leading to memory crashes in mobile app & safari browser. It would be highly appreciated if this could be addressed soon as we are looking for a public release in 2 weeks. |
@nawazmobusss We will have this ready to go for you in a release this week. |
Code of conduct
Impacted component(s)
Menu
Expected behavior
No response
Actual behavior
MenuItemRemovedEvent keeps an instance to an object, which is never cleared. This introduces a leak since the object cannot be garbage collected.
https://studio.webcomponents.dev/edit/C5gyfKCjjMMv14UmjQzr/src/index.ts?p=stories
Screenshots
No response
What browsers are you seeing the problem in?
No response
How can we reproduce this issue?
8. Search for Detached
_item
is the MenuItem held inside the eventSample code that illustrates the problem
No response
Logs taken while reproducing problem
No response
The text was updated successfully, but these errors were encountered: