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

Function setup

packages/runtime-core/__tests__/scopeId.spec.ts:55–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 const deps: Promise<any>[] = []
54 const Child = {
55 async setup() {
56 const p = new Promise(r => setTimeout(r, 1))
57 deps.push(p.then(() => Promise.resolve()))
58
59 await p
60 return () => h('div', 'async')
61 },
62 }
63
64 const Wrapper = {

Callers

nothing calls this directly

Calls 4

withCtxFunction · 0.90
hFunction · 0.85
pushMethod · 0.65
resolveMethod · 0.65

Tested by

no test coverage detected