UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

14 lines (11 loc) 260 B
import { onScopeDispose } from "vue"; import { withScope } from "./withScope"; /** * @since 0.2.1 * @category Utility */ export function tryOnScopeDispose ( fn: ( ) => void ) { return withScope(function doWithScope ( ) { onScopeDispose(fn); }); }