MCPcopy
hub / github.com/nuxt/nuxt / unregister

Function unregister

packages/nuxt/src/app/composables/asyncData.ts:439–448  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

437 }
438
439 function unregister (key: string) {
440 const data = nuxtApp._asyncData[key]
441 if (data?._deps) {
442 data._deps--
443 // clean up memory when it no longer is needed
444 if (data._deps === 0) {
445 data?._off()
446 }
447 }
448 }
449
450 // setup watchers/instance
451 const hasScope = getCurrentScope()

Callers 1

useAsyncDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…