Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vuejs/core
/ setup
Function
setup
packages/runtime-core/__tests__/apiInject.spec.ts:20–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
it(
'string keys'
, () => {
19
const
Provider = {
20
setup() {
21
provide(
'foo'
, 1)
22
return
() => h(Middle)
23
},
24
}
25
26
const
Middle = {
Callers
nothing calls this directly
Calls
5
h
Function · 0.85
inject
Function · 0.85
readonly
Function · 0.85
hasInjectionContext
Function · 0.85
provide
Function · 0.70
Tested by
no test coverage detected