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

Function renderWithBlock

packages/runtime-core/__tests__/rendererOptimizedMode.spec.ts:44–49  ·  view source on GitHub ↗
(renderChildren: () => VNode[])

Source from the content-addressed store, hash-verified

42 })
43
44 const renderWithBlock = (renderChildren: () => VNode[]) => {
45 render(
46 (openBlock(), (block = createBlock('div', null, renderChildren()))),
47 root,
48 )
49 }
50
51 test('basic use of block', () => {
52 render((openBlock(), (block = createBlock('p', null, 'foo'))), root)

Callers 1

Calls 4

renderFunction · 0.90
openBlockFunction · 0.85
renderChildrenFunction · 0.85
createBlockFunction · 0.50

Tested by

no test coverage detected