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

Function runWithContext

packages/runtime-core/src/apiCreateApp.ts:470–478  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

468 },
469
470 runWithContext(fn) {
471 const lastApp = currentApp
472 currentApp = app
473 try {
474 return fn()
475 } finally {
476 currentApp = lastApp
477 }
478 },
479 })
480
481 if (__COMPAT__) {

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected