We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec8fd10 commit 734c65bCopy full SHA for 734c65b
packages/compiler-core/src/transforms/vFor.ts
@@ -23,7 +23,8 @@ import {
23
VNodeCall,
24
ForRenderListExpression,
25
BlockCodegenNode,
26
- ForIteratorExpression
+ ForIteratorExpression,
27
+ ConstantTypes
28
} from '../ast'
29
import { createCompilerError, ErrorCodes } from '../errors'
30
import {
@@ -78,7 +79,7 @@ export const transformFor = createStructuralDirectiveTransform(
78
79
80
const isStableFragment =
81
forNode.source.type === NodeTypes.SIMPLE_EXPRESSION &&
- forNode.source.constType > 0
82
+ forNode.source.constType > ConstantTypes.CAN_SKIP_PATCH
83
const fragmentFlag = isStableFragment
84
? PatchFlags.STABLE_FRAGMENT
85
: keyProp
0 commit comments