-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed as not planned
Description
Vue version
3.2.45
Link to minimal reproduction
Steps to reproduce
- Create a new project
- Alternate 2 components with v-if
- Add an input and focus on the mounted hook on one of the components
- Toggle between components, force the GC in Chrome Devtools each time you switch components
What is expected?
- The components and listeners should be GC and the memory should go back to initial level
What is actually happening?
- The number of listeners and components keeps growing and the memory heap as well
System Info
No response
Any additional comments?
I've been scratching my head for days now. I have a similar issue in my app, and it looks like it doesn't happen if I don't add the focus to the field in the mounted hook.
Problem seems systematic on Vue SFC, and it also happens, although not as consistently, on my test app:
Metadata
Metadata
Assignees
Labels
No labels