File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/runtime-core/src/components Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,13 @@ export const TeleportImpl = {
8484 } = internals
8585
8686 const disabled = isTeleportDisabled ( n2 . props )
87- const { shapeFlag, children } = n2
87+ let { shapeFlag, children, dynamicChildren } = n2
8888
8989 // #3302
9090 // HMR updated, force full diff
9191 if ( __DEV__ && isHmrUpdating ) {
9292 optimized = false
93- n2 . dynamicChildren = null
93+ dynamicChildren = null
9494 }
9595
9696 if ( n1 == null ) {
@@ -146,11 +146,11 @@ export const TeleportImpl = {
146146 const currentAnchor = wasDisabled ? mainAnchor : targetAnchor
147147 isSVG = isSVG || isTargetSVG ( target )
148148
149- if ( n2 . dynamicChildren ) {
149+ if ( dynamicChildren ) {
150150 // fast path when the teleport happens to be a block root
151151 patchBlockChildren (
152152 n1 . dynamicChildren ! ,
153- n2 . dynamicChildren ,
153+ dynamicChildren ,
154154 currentContainer ,
155155 parentComponent ,
156156 parentSuspense ,
You can’t perform that action at this time.
0 commit comments