UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

17 lines (12 loc) 389 B
import { ref, onMounted } from 'vue' // using it to manage SSR rendering with best performance import { isRuntimeSsrPreHydration } from '../../plugins/platform/Platform.js' export default function () { const isHydrated = ref(!isRuntimeSsrPreHydration.value) if (isHydrated.value === false) { onMounted(() => { isHydrated.value = true }) } return { isHydrated } }