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

Function doAsyncWork

packages/runtime-core/__tests__/apiSetupHelpers.spec.ts:457–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

455 })
456
457 async function doAsyncWork() {
458 // should still have instance
459 inBandInstance = getCurrentInstance()
460 await Promise.resolve()
461 // should not leak instance
462 outOfBandInstance = getCurrentInstance()
463 }
464
465 const Comp = defineComponent({
466 async setup() {

Callers 1

setupFunction · 0.85

Calls 2

getCurrentInstanceFunction · 0.85
resolveMethod · 0.65

Tested by

no test coverage detected