MCPcopy
hub / github.com/vuejs/core / createBlock

Function createBlock

packages/runtime-core/src/vnode.ts:369–386  ·  view source on GitHub ↗
(
  type: VNodeTypes | ClassComponent,
  props?: Record<string, any> | null,
  children?: any,
  patchFlag?: number,
  dynamicProps?: string[],
)

Source from the content-addressed store, hash-verified

367 * @private
368 */
369export function createBlock(
370 type: VNodeTypes | ClassComponent,
371 props?: Record<string, any> | null,
372 children?: any,
373 patchFlag?: number,
374 dynamicProps?: string[],
375): VNode {
376 return setupBlock(
377 createVNode(
378 type,
379 props,
380 children,
381 patchFlag,
382 dynamicProps,
383 true /* isBlock: prevent a block from tracking itself */,
384 ),
385 )
386}
387
388export function isVNode(value: any): value is VNode {
389 return value ? value.__v_isVNode === true : false

Callers 15

renderSlotFunction · 0.90
vnode.spec.tsFile · 0.90
runSharedTestsFunction · 0.90
renderSlot.spec.tsFile · 0.90
createCommentVNodeFunction · 0.70
renderFunction · 0.50
setupFunction · 0.50
renderWithBlockFunction · 0.50
setupFunction · 0.50
ParentFunction · 0.50

Calls 1

setupBlockFunction · 0.85

Tested by 12

runSharedTestsFunction · 0.72
renderFunction · 0.40
setupFunction · 0.40
renderWithBlockFunction · 0.40
setupFunction · 0.40
ParentFunction · 0.40
renderFunction · 0.40
renderFnFunction · 0.40
renderFunction · 0.40
setupFunction · 0.40
renderFunction · 0.40
renderFunction · 0.40