since the source value may be a reactive array
fix vitejs/vite#1956
VNodeCall,
ForRenderListExpression,
BlockCodegenNode,
- ForIteratorExpression
+ ForIteratorExpression,
+ ConstantTypes
} from '../ast'
import { createCompilerError, ErrorCodes } from '../errors'
import {
const isStableFragment =
forNode.source.type === NodeTypes.SIMPLE_EXPRESSION &&
- forNode.source.constType > 0
+ forNode.source.constType > ConstantTypes.CAN_SKIP_PATCH
const fragmentFlag = isStableFragment
? PatchFlags.STABLE_FRAGMENT
: keyProp