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

Function setup

packages/runtime-core/__tests__/apiLifecycle.spec.ts:36–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35 const Comp = {
36 setup() {
37 onBeforeMount(fn)
38 return () => h('div')
39 },
40 }
41 render(h(Comp), root)
42 expect(fn).toHaveBeenCalledTimes(1)

Callers

nothing calls this directly

Calls 3

hFunction · 0.85
onActivatedFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected