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

Function setup

packages/runtime-core/__tests__/apiSetupHelpers.spec.ts:50–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 let attrs: SetupContext['attrs'] | undefined
49 const Comp = {
50 setup() {
51 slots = useSlots()
52 attrs = useAttrs()
53 return () => {}
54 },
55 }
56 const passedAttrs = { id: 'foo' }
57 const passedSlots = {

Callers

nothing calls this directly

Calls 10

useSlotsFunction · 0.90
useAttrsFunction · 0.90
withAsyncContextFunction · 0.90
effectFunction · 0.90
getCurrentInstanceFunction · 0.85
hFunction · 0.85
doAsyncWorkFunction · 0.85
resolveMethod · 0.65
resolveFunction · 0.50
computedFunction · 0.50

Tested by

no test coverage detected