@cran/lib.vue.ref
Version:
Vue Reactivity Extensions
16 lines (15 loc) • 419 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.tryOnDeactivated = void 0;
const vue_1 = require("vue");
const withScope_1 = require("./withScope");
/**
* @since 0.2.1
* @category Utility
*/
function tryOnDeactivated(fn) {
return (0, withScope_1.withScope)(function doWithScope() {
(0, vue_1.onDeactivated)(fn);
});
}
exports.tryOnDeactivated = tryOnDeactivated;