fix(ssr): fix unintended error on Teleport hydration mismatch (#1271)
fix #1235
This commit is contained in:
@@ -314,9 +314,8 @@ function hydrateTeleport(
|
||||
optimized
|
||||
)
|
||||
}
|
||||
;(target as TeleportTargetElement)._lpa = nextSibling(
|
||||
vnode.targetAnchor as Node
|
||||
)
|
||||
;(target as TeleportTargetElement)._lpa =
|
||||
vnode.targetAnchor && nextSibling(vnode.targetAnchor as Node)
|
||||
}
|
||||
}
|
||||
return vnode.anchor && nextSibling(vnode.anchor as Node)
|
||||
|
||||
Reference in New Issue
Block a user