File tree 1 file changed +5
-4
lines changed
packages/runtime-core/src/components
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 7
7
closeBlock ,
8
8
currentBlock ,
9
9
Comment ,
10
- createVNode
10
+ createVNode ,
11
+ isBlockTreeEnabled
11
12
} from '../vnode'
12
13
import { isFunction , isArray , ShapeFlags , toNumber } from '@vue/shared'
13
14
import { ComponentInternalInstance , handleSetupResult } from '../component'
@@ -727,16 +728,16 @@ function normalizeSuspenseChildren(vnode: VNode) {
727
728
function normalizeSuspenseSlot ( s : any ) {
728
729
let block : VNode [ ] | null | undefined
729
730
if ( isFunction ( s ) ) {
730
- const isCompiledSlot = s . _c
731
- if ( isCompiledSlot ) {
731
+ const trackBlock = isBlockTreeEnabled && s . _c
732
+ if ( trackBlock ) {
732
733
// disableTracking: false
733
734
// allow block tracking for compiled slots
734
735
// (see ./componentRenderContext.ts)
735
736
s . _d = false
736
737
openBlock ( )
737
738
}
738
739
s = s ( )
739
- if ( isCompiledSlot ) {
740
+ if ( trackBlock ) {
740
741
s . _d = true
741
742
block = currentBlock
742
743
closeBlock ( )
You can’t perform that action at this time.
0 commit comments