You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
448 B

import { u as useState } from './state-DQnwRar-.mjs';
import { computed } from 'vue';
function useLoading() {
const count = useState("app:loading", () => 0);
const loading = computed(() => count.value > 0);
function begin() {
count.value++;
}
function end() {
count.value = Math.max(0, count.value - 1);
}
return { count, loading, begin, end };
}
export { useLoading as u };
//# sourceMappingURL=useLoading-D6mc40Wj.mjs.map