vue-intlayer
Version:
Easily internationalize i18n your Vue applications with type-safe multilingual content management.
16 lines (15 loc) • 414 B
JavaScript
import { effectScope as p, getCurrentScope as c, onScopeDispose as i } from "vue";
function u(t) {
return c() ? (i(t), !0) : !1;
}
const a = (t) => {
let r = 0, o, e;
const s = () => {
r -= 1, e && r <= 0 && (e.stop(), o = void 0, e = void 0);
};
return ((...n) => (r += 1, e || (e = p(!0), o = e.run(() => t(...n))), u(s), o));
};
export {
a as createSharedComposable,
u as tryOnScopeDispose
};