Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
20
VApp/node_modules/vuetify/lib/composables/hydration.mjs
generated
vendored
Normal file
20
VApp/node_modules/vuetify/lib/composables/hydration.mjs
generated
vendored
Normal 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
|
Reference in New Issue
Block a user