Skip to content

Webcomponent created with Vue not being GC #14379

@boga001

Description

@boga001

Vue version

3.5.12

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-hnhnh18j?file=src%2Fmain.js,src%2FApp.vue,vite.config.js&terminal=dev

Steps to reproduce

  1. Create a simple vue 3 project with customElements: true and use createCustomElement to create a small webcomponent
  2. Open developer tools and run the memory profile - find minimal-test component
  3. Remove it from DOM
  4. Run GC manually
  5. Run the memory profile again - find minimal-test, it's showing as detached

What is expected?

Expected that he component is GC and not detached

What is actually happening?

Webcomponent stays detached and in memory

System Info

Any additional comments?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions