UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

12 lines (11 loc) 251 B
import { onErrorCaptured } from "vue"; import { withScope } from "./withScope"; /** * @since 0.2.1 * @category Utility */ export function tryOnErrorCaptured(fn) { return withScope(function doWithScope() { onErrorCaptured(fn); }); }