Files
appco_dist/.output/server/chunks/build/index-BWBnVq-W.mjs
T

19 lines
476 B
JavaScript
Raw Normal View History

2026-01-27 16:47:33 +03:30
import { getCurrentScope, onScopeDispose, getCurrentInstance } from 'vue';
2026-01-27 16:02:45 +03:30
function tryOnScopeDispose(fn) {
if (getCurrentScope()) {
onScopeDispose(fn);
return true;
}
return false;
}
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
function getLifeCycleTarget(target) {
return getCurrentInstance();
}
function tryOnUnmounted(fn, target) {
getLifeCycleTarget();
}
export { tryOnScopeDispose as a, tryOnUnmounted as t };