MCPcopy
hub / github.com/vuejs/core / setup

Function setup

packages/reactivity/__tests__/computed.spec.ts:815–822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

813
814 const Child = {
815 setup() {
816 const b = computed(() => a.value + 1)
817 const c = computed(() => b.value + 1)
818 // access
819 c.value
820 onUnmounted(() => spy(c.value))
821 return () => {}
822 },
823 }
824
825 const show = ref(true)

Callers

nothing calls this directly

Calls 3

computedFunction · 0.90
hFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected