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
I think I've found the cause of many memory leaks in the system. The issue is that a lot of apps add listeners to the window object, and those listeners don't go away when the element is removed from the document. Since those listeners are arrow functions, they close over the entire class and thus nothing can get garbage-collected.
I think I've found the cause of many memory leaks in the system. The issue is that a lot of apps add listeners to the
window
object, and those listeners don't go away when the element is removed from the document. Since those listeners are arrow functions, they close over the entire class and thus nothing can get garbage-collected.Here's one example:
https://github.com/UltimatePro-Grammer/websystem/blob/4d5138172f8370cebb70faf54652f24aba3d86e4/js/appstore.js#L231-L236
The text was updated successfully, but these errors were encountered: