MCPcopy
hub / github.com/nuxt/nuxt / setup

Function setup

test/nuxt/use-async-data.test.ts:46–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 let res!: ReturnType<typeof useAsyncData>
45 const component = defineComponent({
46 setup () {
47 res = useAsyncData(...args as [any])
48 return () => h('div', [res.data.value as any])
49 },
50 })
51
52 const c = await mountSuspended(component)

Callers

nothing calls this directly

Calls 4

useAsyncDataFunction · 0.90
useNuxtDataFunction · 0.90
useCustomDataFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…