@@ -255,8 +255,8 @@ function createSuspenseBoundary<HostNode, HostElement>(
255
255
hiddenContainer,
256
256
anchor,
257
257
deps : 0 ,
258
- subTree : null as any , // will be set immediately after creation
259
- fallbackTree : null as any , // will be set immediately after creation
258
+ subTree : ( null as unknown ) as VNode , // will be set immediately after creation
259
+ fallbackTree : ( null as unknown ) as VNode , // will be set immediately after creation
260
260
isResolved : false ,
261
261
isUnmounted : false ,
262
262
effects : [ ] ,
@@ -290,11 +290,11 @@ function createSuspenseBoundary<HostNode, HostElement>(
290
290
// if the fallback tree was mounted, it may have been moved
291
291
// as part of a parent suspense. get the latest anchor for insertion
292
292
anchor = next ( fallbackTree )
293
- unmount ( fallbackTree as VNode , parentComponent , suspense , true )
293
+ unmount ( fallbackTree , parentComponent , suspense , true )
294
294
}
295
295
// move content from off-dom container to actual container
296
- move ( subTree as VNode , container , anchor , MoveType . ENTER )
297
- const el = ( vnode . el = ( subTree as VNode ) . el ! )
296
+ move ( subTree , container , anchor , MoveType . ENTER )
297
+ const el = ( vnode . el = subTree . el ! )
298
298
// suspense as the root node of a component...
299
299
if ( parentComponent && parentComponent . subTree === vnode ) {
300
300
parentComponent . vnode . el = el
@@ -340,7 +340,7 @@ function createSuspenseBoundary<HostNode, HostElement>(
340
340
341
341
// move content tree back to the off-dom container
342
342
const anchor = next ( subTree )
343
- move ( subTree as VNode , hiddenContainer , null , MoveType . LEAVE )
343
+ move ( subTree , hiddenContainer , null , MoveType . LEAVE )
344
344
// remount the fallback tree
345
345
patch (
346
346
null ,
@@ -352,7 +352,7 @@ function createSuspenseBoundary<HostNode, HostElement>(
352
352
isSVG ,
353
353
optimized
354
354
)
355
- const el = ( vnode . el = ( fallbackTree as VNode ) . el ! )
355
+ const el = ( vnode . el = fallbackTree . el ! )
356
356
// suspense as the root node of a component...
357
357
if ( parentComponent && parentComponent . subTree === vnode ) {
358
358
parentComponent . vnode . el = el
0 commit comments