Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vuejs/composition-api
/ setup
Function
setup
test/setup.spec.js:34–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
32
it(
'should works'
, () => {
33
const
vm =
new
Vue({
34
setup() {
35
return
{
36
a: ref(1),
37
}
38
},
39
}).$mount()
40
expect(vm.a).toBe(1)
41
})
Callers
nothing calls this directly
Calls
9
ref
Function · 0.90
toRefs
Function · 0.90
provide
Function · 0.90
inject
Function · 0.90
computed
Function · 0.90
reactive
Function · 0.90
markRaw
Function · 0.90
toRaw
Function · 0.90
watchEffect
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…