Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.51 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.51 KB

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