fix(runtime-core): avoid mutating EMPTY_ARR when setting dev root (#2419)
also freeze EMPTY_ARR in dev fix #2413
This commit is contained in:
@@ -243,7 +243,7 @@ export function createBlock(
|
||||
true /* isBlock: prevent a block from tracking itself */
|
||||
)
|
||||
// save current block children on the block vnode
|
||||
vnode.dynamicChildren = currentBlock || EMPTY_ARR
|
||||
vnode.dynamicChildren = currentBlock || (EMPTY_ARR as any)
|
||||
// close block
|
||||
closeBlock()
|
||||
// a block is always going to be patched, so track it as a child of its
|
||||
|
||||
Reference in New Issue
Block a user