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