Skip to content

cv-chameleon/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

Languages

  • HTML 49.9%
  • Vue 24.7%
  • JavaScript 18.2%
  • TypeScript 7.2%