Tram-One / tram-one

🚋 Legacy View Framework For Vanilla Javascript
http://tram-one.io/
MIT License
36 stars 8 forks source link

Clean up stores from elements that have been removed #185

Closed JRJurman closed 2 years ago

JRJurman commented 2 years ago

Summary

After building https://redditcomber.com/, a memory leak was discovered to slow down the app over successive interactions.

After lots of investigation, it appears that one source of the memory leak could be that stores are not cleaned up if an element is removed.

We should update the logic to clean up stores for elements that have been removed.