Open yyyanghj opened 3 years ago
And the behavior is different in dev and build:
🤔 Need some investigation
I think the issue is that we need to handle teleport SSR first:
I had ever put a TODO
comment, but removed it in a later commit:
As far as I know, there is currently no good solution for teleport SSR yet. The SSR outlet of teleport is simply <!--teleport-start--><!--teleport-end-->
, which does not provide any information about the ordering.
Bug report
Description
I have a
<Wrapper />
component, which is used in every layout component. If I use<teleport/>
in<Wrapper/>
, something weird will happen. When I navigate to/about
, everything is gone and the whole Vue App is destroyed.Steps to reproduce
Reproduction link / repo: https://github.com/yyyang1996/for-vuepress-issue-1
Clone this repo.
Build and serve.
Open http://localhost:5050
Click the button then you link to
/about
.The content lost and the whole Vue App is destroyed.
Screenshots
Expected behavior
Environment info