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

Function setup

packages/runtime-core/__tests__/componentProps.spec.ts:73–78  ·  view source on GitHub ↗
(_props, { attrs: _attrs })

Source from the content-addressed store, hash-verified

71 const Comp = defineComponent({
72 props: ['foo'],
73 setup(_props, { attrs: _attrs }) {
74 return () => {
75 props = _props
76 attrs = _attrs
77 }
78 },
79 })
80
81 const root = nodeOps.createElement('div')

Callers

nothing calls this directly

Calls 7

hFunction · 0.85
getCurrentInstanceFunction · 0.85
toRefsFunction · 0.85
injectFunction · 0.85
provideFunction · 0.70
refFunction · 0.70
watchFunction · 0.50

Tested by

no test coverage detected