Tracking de l'application VApp (IHM du jeu)

This commit is contained in:
2025-05-11 18:04:12 +02:00
commit 89e9db9b62
17763 changed files with 3718499 additions and 0 deletions

View File

@ -0,0 +1,20 @@
// Composables
import { useDisplay } from "./display.mjs"; // Utilities
import { onMounted, shallowRef } from 'vue';
import { IN_BROWSER } from "../util/index.mjs";
export function useHydration() {
if (!IN_BROWSER) return shallowRef(false);
const {
ssr
} = useDisplay();
if (ssr) {
const isMounted = shallowRef(false);
onMounted(() => {
isMounted.value = true;
});
return isMounted;
} else {
return shallowRef(true);
}
}
//# sourceMappingURL=hydration.mjs.map