fix(suspense): fix dynamicChildren tracking when suspense root is a block itself
e.g. `<slot>` inside suspense fix #4183, fix #4198
This commit is contained in:
@@ -749,7 +749,7 @@ function normalizeSuspenseSlot(s: any) {
|
||||
s = singleChild
|
||||
}
|
||||
s = normalizeVNode(s)
|
||||
if (block) {
|
||||
if (block && !s.dynamicChildren) {
|
||||
s.dynamicChildren = block.filter(c => c !== s)
|
||||
}
|
||||
return s
|
||||
|
||||
Reference in New Issue
Block a user