DejaVue #E004 - Teleports and When to Use Them @DejaVueFm
DejaVue #E004 - Teleports and When to Use Them  @DejaVueFm
Uploaded April 2024 | Updated November 2026, 2 hours ago
Welcome to the fourth episode of DejaVue! From a Nuxt topic last week, Michael and Alex jump into a plain Vue.js topic again, or would you say... teleport?
Yes, correct! The Teleports feature from Vue 3 will be explored - from its use cases to the native HTML dialog tag. The two hosts also cover how Teleports were created, even back in Vue 2, and talk about a Nuxt implementation too.

Learn more about Teleports in this episode of DejaVue!

**Post-podcast note**: The Popover API is now available in all major browsers!

--
Hosts

* Alexander Lichter
* YouTube - @TheAlexLichter
* Twitter - twitter.com/TheAlexLichter
* Web - lichter.io

Michael Thiessen
* Twitter - twitter.com/MichaelThiessen
* Web - michaelnthiessen.com

--
Chaptermarks:

00:00 Intro
00:35 What are Teleports?
01:35 The typical Teleport use case
03:23 Other use cases for Teleports (1)
06:45 Async Components and Suspense (1)
07:48 Pitfalls with Teleports
09:15 The native dialog components
12:14 Building an own modal / dialog
13:25 How you did it before Teleports
14:33 What Teleports don't solve
15:13 Other use cases for Teleports (2)
16:46 Teleport targets / Where to teleport
17:49 Vue 2 Teleports
19:04 Teleports and SSR
25:13 Creating Reproductions and Open Source
29:28 Outro

--
Links and Resources

▶ Teleports Vue.js Docs v3.vuejs.org/guide/teleports.html
▶ Headless UI github.com/tailwindlabs/headlessui
▶ The Dialog Element developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
▶ Popovers (Now available) developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover
▶ Portal Vue package (needed in Vue 2) github.com/LinusBorg/portal-vue
▶ Evan on SSR Teleports github.com/vuejs/core/issues/5242#issuecomment-1129829701
▶ #teleports in Nuxt github.com/nuxt/nuxt/pull/25043
▶ Suspense + Teleports Issue github.com/vuejs/core/issues/6207

--
Follow DejaVue on

▶ The Web: https://dejavue.fm/
▶ Twitter: twitter.com/dejavuefm
▶ Apple Podcast: podcasts.apple.com/us/podcast/dejavue/id1737631788
▶ YouTube: youtube.com/@DejaVueFm
▶ Spotify: open.spotify.com/show/5VQ15QHkC7HSmwTYR7vCPF
▶ Deezer: deezer.com/show/1000792252
▶ Amazon Music: music.amazon.com/podcasts/798ccbb2-4a8f-4d83-bff7-00cbc8730f56
▶ Pocket Casts: https://pca.st/49qr8d1k
DejaVue #E004 - Teleports and When to Use ThemDejaVue #E002 - Building a Nuxt.js SaaS in less than a week (with Harlan Wilton)DejaVue #E039 - Migrating a SaaS from Nuxt 2 to Nuxt 3 (with Sumit Kumar)DejaVue #E009 - Vue.js in Large Applications (with Tim Benniks)DejaVue #E013 - The Road to Nuxt 4 (with Daniel Roe)DejaVue #E000 - TrailerDejaVue #E008 - Vue.js AmsterdamDejaVue #E035 - Error Handling in VueDejaVue #E052 - Visualizing Data in Vue (with Dennis Adriaansen)DejaVue #E055 - e18e: Ecosystem Performance (with James Garbutt)DejaVue #E011 - Learning new Vue Features and Concepts (with LearnVue aka. Matt Maribojoc)DejaVue #E057 - Motion for Vue (with Matt Perry)
DejaVue |

DejaVue #E004 - Teleports and When to Use Them

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER