Async component teleport is not rendered in SSR
Version
3.2.6
Reproduction link
https://github.com/frandiox/vue-teleport-ssr-issue
Steps to reproduce
- yarn && yarn dev
- 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.
@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?