I am using vue-js-modal dynamically and am relying on the clickToClose functionality to close the modal when clicking the background. I noticed some potential memory leak issues but I'm no expert in these things.
I ran a performance profile of my SPA. After pressing record I clicked collect garbage to serve as a baseline. Then I opened and closed the modal 5 times in a row and then sat stationary for a few seconds after the final modal close before ending the recording. I am attaching the HEAP graph below. Is anyone else seeing this or am I missing something that manually needs to be done?
Problem:
I am using vue-js-modal dynamically and am relying on the clickToClose functionality to close the modal when clicking the background. I noticed some potential memory leak issues but I'm no expert in these things.
I ran a performance profile of my SPA. After pressing record I clicked collect garbage to serve as a baseline. Then I opened and closed the modal 5 times in a row and then sat stationary for a few seconds after the final modal close before ending the recording. I am attaching the HEAP graph below. Is anyone else seeing this or am I missing something that manually needs to be done?
Example & screenshots: