fix(v-once): fix v-once usage with v-if and v-for

fix #2035
This commit is contained in:
Evan You
2020-09-02 12:29:07 -04:00
parent ad93fa42fc
commit 52e45a9850
4 changed files with 77 additions and 13 deletions

View File

@@ -399,6 +399,7 @@ export function traverseNode(
}
// exit transforms
context.currentNode = node
let i = exitFns.length
while (i--) {
exitFns[i]()