fix(runtime-core): openBlock() should not be tracked when block tracking is disabled

This commit is contained in:
Evan You
2020-09-02 12:15:36 -04:00
parent 552ad4e926
commit ad93fa42fc
2 changed files with 14 additions and 2 deletions

View File

@@ -235,7 +235,7 @@ export function createBlock(
closeBlock()
// a block is always going to be patched, so track it as a child of its
// parent block
if (currentBlock) {
if (shouldTrack > 0 && currentBlock) {
currentBlock.push(vnode)
}
return vnode