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

Function setup

test/v3/reactivity/effectScope.spec.ts:282–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280 const root = document.createElement('div')
281 const vm = createApp({
282 setup() {
283 const scope = new EffectScope()
284 scope.run(() => {
285 watchEffect(() => (dummy = counter.num))
286 watchEffect(() => (doubled = counter.num * 2))
287 })
288 },
289 })
290 vm.mount(root)
291

Callers

nothing calls this directly

Calls 4

watchEffectFunction · 0.90
getCurrentScopeFunction · 0.90
onScopeDisposeFunction · 0.90
runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…