fix(compiler-core): handle template root and template v-if as stable fragments
This commit is contained in:
@@ -146,7 +146,10 @@ export const transformFor = createStructuralDirectiveTransform(
|
||||
createCallExpression(helper(CREATE_BLOCK), [
|
||||
helper(FRAGMENT),
|
||||
keyProperty ? createObjectExpression([keyProperty]) : `null`,
|
||||
node.children
|
||||
node.children,
|
||||
`${PatchFlags.STABLE_FRAGMENT} /* ${
|
||||
PatchFlagNames[PatchFlags.STABLE_FRAGMENT]
|
||||
} */`
|
||||
]),
|
||||
context
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user