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
When the number of dom nodes no longer changes, click start counter button to start the counter, the number of dom nodes will increase as the counter is executed each time.
Click stop counter button to stop the counter, the number of dom nodes will stop growing.
What is expected?
The number of Dom nodes should remain constant while the counter is executing.
What is actually happening?
The number of dom nodes are increased as the counter is executed each time. This will cause a memory leak.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered:
Please make sure to operate in Chrome incognito mode or disable vue-devtools.
After manually clicking collect garbage, the DOM nodes will be reclaimed, which is not a memory leak.
Kapture.2025-01-09.at.10.40.09.mp4
Please make sure to operate in Chrome incognito mode or disable vue-devtools. After manually clicking collect garbage, the DOM nodes will be reclaimed, which is not a memory leak.
I found that the js heap size did not increase, perhaps Chrome's counting of the number of dom nodes is inaccurate in some cases. Thank you!
Vue version
3.5.13
Link to minimal reproduction
https://play.vuejs.org/#eNp9UsFu2zAM/RVChzVFgzjDduqcYFvRQ3fYhm1HXRyHydTKkiBRaQDD/15KqlOjSHsxpMfHp/do9uKbc4tDRHEt6tB65QgCUnRraVTnrCfoweMOBth528EFUy+kkaa1JhCY2MEq1WfLy4RqJCDVoX+hBGo83dhoCD1zZ5ewWkMvDRQiQ/zeXaoeGj2blCGpLxiMeHWVgGEOH5fL9NAwlbfurHqrsfEn3fxW6ayrkpMT8oWwc7oh5BtAvVWHfOD2onkNfZ9TDtzJhGpk1BsP1eumehOJrIGvrVbtw0qKaXgp1vk6StdVYT/3fjCb4L6U75tqp6xZzLqzWqPJupqEE3NBgUe2U/vFfbCG/3cekxSt7ZzS6H85UjxSKThzMSBFo7V9/JEx8hHnI97+x/bhDH4fjgmT4rfHwJNHKU41zr5HKuXbvz/xyOdTsbPbqJn9TvEPBqtj8lho36PZsu0JL7u9y1urzP5fuD0SmjCGSkbLGpXcvMk370R/sftp8Tn38faI4QmqHBCu
Steps to reproduce
What is expected?
The number of Dom nodes should remain constant while the counter is executing.
What is actually happening?
The number of dom nodes are increased as the counter is executed each time. This will cause a memory leak.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: