MCPcopy
hub / github.com/nuxt/nuxt / useCustomData

Function useCustomData

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

Source from the content-addressed store, hash-verified

580
581 it('should work correctly with nested components accessing the same asyncData', async () => {
582 const useCustomData = () => useAsyncData(uniqueKey, async () => {
583 await Promise.resolve()
584 return 'value'
585 })
586
587 const ChildComponent = defineComponent({
588 setup () {

Callers 1

setupFunction · 0.85

Calls 2

useAsyncDataFunction · 0.90
resolveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…