Why does teleport replace the first node of the container in ssr? #7172
baiwusanyu-c
started this conversation in
General Discussions
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that the first node of the target container will be selected when the
teleportis hydrating, and the document specifically states that theteleportshould only contain the content of theteleportwhen ssr is used(see). I don't know why it is designed this way. Because then in the codetarget.firstChild willalways be nullBeta Was this translation helpful? Give feedback.
All reactions