Skip to content

Announcment: No Vue 3 support planned, use native <teleport> instead #56

Open
@LinusBorg

Description

@LinusBorg

Vue 3 introduced <teleport>, a feature which was very much inspired by the functionality provided by this library.

It does everything this library does, but better and without any caveats or hacks, as the moving of the DOM is implemented directly in Vue 3's renderer.

For that reason, this library will not be ported to Vue 3. The migration path is pretty straightforward:

Vue 2 & vue-simple-portal

<portal selector="#portal-target">
  <p>This will be mounted as a child element
    of <div id="portal-parget"> instead of
    somewhere inside the child tree of <div id="app">
  </p>
</portal>

Vue 3

<teleport to="#portal-target">
  <p>This will be mounted as a child element
    of <div id="portal-parget"> instead of
    somewhere inside the child tree of <div id="app">
  </p>
</teleport>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions