MCPcopy
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

refFunction · 0.90
toRefsFunction · 0.90
provideFunction · 0.90
injectFunction · 0.90
computedFunction · 0.90
reactiveFunction · 0.90
markRawFunction · 0.90
toRawFunction · 0.90
watchEffectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…