Why does teleport replace the first node of the container in ssr? #7172
baiwusanyu-c
started this conversation in
General Discussions
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that the first node of the target container will be selected when the
teleport
is hydrating, and the document specifically states that theteleport
should only contain the content of theteleport
when ssr is used(see). I don't know why it is designed this way. Because then in the codetarget.firstChild will
always be nullBeta Was this translation helpful? Give feedback.
All reactions