Subscribe on changes!

Async component teleport is not rendered in SSR

avatar
Aug 25th 2021

Version

3.2.6

Reproduction link

https://github.com/frandiox/vue-teleport-ssr-issue

Steps to reproduce

  1. yarn && yarn dev
  2. Open localhost:3000

What is expected?

AsyncComponent teleport element should be rendered and included in ctx.teleports.

What is actually happening?

It is not included in ctx.teleports, but appears in ctx.__teleportBuffers (check server logs).


I was trying to support teleports in vite-ssr library and I found this issue when using async routes in vue-router. Turns out any async component triggers it. If you remove the async setup from AsyncComponent, it starts working.

avatar
Mar 21st 2022

@LinusBorg This is an issue since August. There is a provided fix since end of December. Is there any chance that the PR will be merged soon?

avatar
May 17th 2022

closed by #5187