MCPcopy
hub / github.com/vuejs/composition-api / setup

Function setup

test/templateRefs.spec.js:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 let dummy
8 const vm = new Vue({
9 setup() {
10 const ref1 = ref(null)
11 watchEffect(() => {
12 dummy = ref1.value
13 })
14
15 return {
16 bar: ref1,
17 }
18 },
19 template: `<div>
20 <test ref="bar"></test>
21 </div>`,

Callers

nothing calls this directly

Calls 2

refFunction · 0.90
watchEffectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…