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

Function setup

packages/runtime-core/__tests__/rendererOptimizedMode.spec.ts:354–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352 const count = ref(0)
353 const Comp = {
354 setup() {
355 return () => {
356 count.value
357 return (
358 openBlock(),
359 (block = createBlock('div', null, [
360 createVNode(
361 'p',
362 { onVnodeMounted: spyMounted, onVnodeBeforeUpdate: spyUpdated },
363 '',
364 PatchFlags.NEED_PATCH,
365 ),
366 ]))
367 )
368 }
369 },
370 }
371
372 render(h(Comp), root)

Callers

nothing calls this directly

Calls 12

toDisplayStringFunction · 0.90
openBlockFunction · 0.85
withCtxFunction · 0.85
renderSlotFunction · 0.85
createTextVNodeFunction · 0.85
createCommentVNodeFunction · 0.85
hFunction · 0.85
createElementBlockFunction · 0.85
StringInterface · 0.85
renderListFunction · 0.85
pushMethod · 0.65
createBlockFunction · 0.50

Tested by

no test coverage detected