UNPKG

ll-package

Version:

2 lines (1 loc) 374 B
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue");function r(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,t;l.onBeforeUnmount(()=>{clearTimeout(t)});function o(u){(u||e===null)&&(e=u),clearTimeout(t),t=setTimeout(()=>{e=null},n)}return[()=>e,o]}exports.default=r;