~/talk

Adaptive Teleport in Nuxt

Talkat Nuxt Nation 2024 · 2024-11-12..11-13· [frontend-architecture]
links:none on file
slides:none on file

Persistent heavy components avoid remounts by reverse Teleport: a top-level component stays mounted above Nuxt pages while its DOM is teleported down into page-specific targets, reducing expensive reloads. Route changes trigger a forced target shuffle and the implementation uses a MutationObserver to handle async Suspense/await timing so teleports reattach only when the page target exists. The result is an adaptive-teleport module with code on GitHub and installable with one Nuy command; it works but admits a hacky edge case.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.