It seems like by default teleport won't get rendered by using renderToString.
Does any one know how to render and hydrate the teleport component in Vue3?
I've found some tests here, but couldn't figure out how to apply this on a real world example, and couldn't find any information on this topic.
Well you can load teleport in ssr, but I am not sure you can hydrate it. Consider this example
Here we are rendering our teleport, so we can set some data even without js. But we cannot hydrate it, as it has nothing to connect to. Instead teleport will be appended another time, and we will get duplicate teleport content.
So all I could do with it, is using this workaround. Before App.vue mounted, we remove old teleport, so new one can replace it. It's not hydration, so it is slower for big components, but it is working well.