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

Function setup

packages/vue/__tests__/e2e/memory-leak.spec.ts:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 <div>{{ test.length }}</div>
27 `,
28 setup() {
29 const test = ref([...Array(3000)].map((_, i) => ({ i })))
30 // @ts-expect-error
31 window.__REF__ = new WeakRef(test)
32
33 return { test }
34 },
35 },
36 Comp2: {
37 template: `<h2>comp2</h2>`,

Callers

nothing calls this directly

Calls 4

hFunction · 0.85
mapMethod · 0.80
resolveMethod · 0.65
refFunction · 0.50

Tested by

no test coverage detected