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
This is the same as #1319. It seems to be related to RouterLink being used in the nested view, so if anybody wants to debug it, they can start there. Also using a link outside of the nested view avoid the memory hold. The fix could also be in Vue Core and there could also be an already submitted PR.
Note this is not a leak as memory consumption doesn't grow, it's kept stable. But something is holding into memory. I updated the reproduction as well
posva
changed the title
DOM nodes leak
DOM nodes are being hold by router links in nested views
Sep 14, 2020
Note this is not a leak as memory consumption doesn't grow, it's kept stable
AFAIK, detached DOM elements doesn't count to JS heap size, but they are still stored in the memory. Could you explain why this shouldn't be treated as memory leak?
Version
3.4.3
Reproduction link
Steps to reproduce
P.S. If you do this procedure several times amount DOM nodes should changed, but the original will remain forever.
What is expected?
it is expected that after each click on the link "back" DOM nodes will be cleared.
What is actually happening?
Now, they are cleared only after the first transition, but still remain in the memory DOM nodes for the first transition.
https://youtu.be/bjz1N0BD_2c
The text was updated successfully, but these errors were encountered: