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

Function setup

packages/runtime-core/__tests__/components/Suspense.spec.ts:63–73  ·  view source on GitHub ↗
(props: any, { slots }: any)

Source from the content-addressed store, hash-verified

61 ) {
62 return {
63 setup(props: any, { slots }: any) {
64 const p = new Promise(resolve => {
65 setTimeout(() => {
66 resolve(() => h(comp, props, slots))
67 }, delay)
68 })
69 // in Node 12, due to timer/nextTick mechanism change, we have to wait
70 // an extra tick to avoid race conditions
71 deps.push(p.then(() => Promise.resolve()))
72 return p
73 },
74 }
75 }
76

Callers

nothing calls this directly

Calls 15

provideFunction · 0.90
hFunction · 0.85
injectFunction · 0.85
watchEffectFunction · 0.85
onErrorCapturedFunction · 0.85
openBlockFunction · 0.85
createElementBlockFunction · 0.85
delayFunction · 0.85
shallowRefFunction · 0.85
getComponentFunction · 0.85
withDirectivesFunction · 0.85
withAsyncContextFunction · 0.85

Tested by

no test coverage detected