UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

16 lines (15 loc) 424 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tryOnBeforeUpdate = void 0; const vue_1 = require("vue"); const withScope_1 = require("./withScope"); /** * @since 0.2.1 * @category Utility */ function tryOnBeforeUpdate(fn) { return (0, withScope_1.withScope)(function doWithScope() { (0, vue_1.onBeforeUpdate)(fn); }); } exports.tryOnBeforeUpdate = tryOnBeforeUpdate;