@cran/lib.vue.ref
Version:
Vue Reactivity Extensions
14 lines (13 loc) • 334 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.withScope = void 0;
const vue_1 = require("vue");
function withScope(callback) {
const scope = (0, vue_1.getCurrentScope)();
if (scope) {
callback(scope);
return true;
}
return false;
}
exports.withScope = withScope;