fn
getActiveApp
v0.1.0testeddemoReturns the closest Vue app instance: the current component's app when called
during setup (or anywhere getCurrentInstance works), otherwise the app registered via
setActiveApp / activeAppPlugin.
Example
ts
const app = getActiveApp();
app?.config.globalProperties;Demo
Loading demo…
Signature
ts
export function getActiveApp(): App | undefined{ ... }Returns
App | undefinedThe resolved app, or undefined when none is available