Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

emarbo/nested-teleport-demo

Repository files navigation

nested-teleport-demo

Demo for github issue: vuejs/core#5242

Update: After updating Vue version and changing from body to #body-teleports as commented here, the SSR start working properly.

Project setup

npm install
npm run build

Run the server production mode (SSR)

npm run serve-prod

Tests

Happy path

Access to the home at http://localhost:8010/ and browse through the different pages:

  • Home
  • One teleport
  • Two teleport
  • Nested teleport

Everything works as expected.

One teleport case

Access to http://localhost:8010/one-teleport directly to trigger the SSR. What happens:

  • No hydration errors
  • After browsing to another page, the app disappears from the DOM.

Two teleport case

Access to http://localhost:8010/two-teleport directly to trigger the SSR. What happens:

  • Hydration errors on the console
  • After re-rendering (due to hydration errors), the second teleport appears twice in the DOM.
  • After browsing to another page, the app disappears from the DOM.

Nested teleport case

Access to http://localhost:8010/nested-teleport directly to trigger the SSR. What happens:

  • Hydration errors on the console
  • After re-rendering (due to hydration errors), the app disappears from the DOM

About

A vue demo for a bug report

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published