Skip to content

Memory leaks in vue-router #12811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Proxx07 opened this issue Feb 3, 2025 · 1 comment
Closed

Memory leaks in vue-router #12811

Proxx07 opened this issue Feb 3, 2025 · 1 comment

Comments

@Proxx07
Copy link

Proxx07 commented Feb 3, 2025

Vue version

3.5

Link to minimal reproduction

https://github.com/Proxx07/vue-router-test

Steps to reproduce

Just navigate between routes and get heap snapshots.

heap snapshot at first visit https://prnt.sc/KrCF8rvF3fJY
heap snapshot after navigating between "main" and "about" pages 50 times https://prnt.sc/VevR3ZvU7QsG
heap after refresh https://prnt.sc/oAaj6JIIO1R6

reset heap and refresh browser https://prnt.sc/hMyKwY5pMDXk
heap after navigating between "main" and "big-data" pages 10 times https://prnt.sc/YFGIy_YcrD9n
heap after navigating between "main" and "big-data" pages 50 times https://prnt.sc/QESC4KfkxKMZ
similar behavior in prod https://prnt.sc/Wr3AmX7DbrVg

What is expected?

Heap shouldn't increase constantly every time during navigation

What is actually happening?

Heap rewriting even you've visited route already untill page reloading

System Info

Any additional comments?

No response

@edison1105
Copy link
Member

duplicate of #12777

@github-actions github-actions bot locked and limited conversation to collaborators Feb 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants