Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
h
Function · 0.85
onActivated
Function · 0.85
push
Method · 0.65
Tested by
no test coverage detected