vue3-core/packages/shared/src/vaporFlags.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
539 B
TypeScript
Raw Normal View History

/**
* Flags to optimize vapor `createFor` runtime behavior, shared between the
* compiler and the runtime
*/
export enum VaporVForFlags {
/**
* v-for is the only child of a parent container, so it can take the fast
* path with textContent = '' when the whole list is emptied
*/
FAST_REMOVE = 1,
/**
* v-for used on component - we can skip creating child scopes for each block
* because the component itself already has a scope.
*/
IS_COMPONENT = 1 << 1,
/**
* v-for inside v-ince
*/
ONCE = 1 << 2,
}