1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-20 07:49:57 +00:00
elk/composables/hydration.ts

9 lines
184 B
TypeScript
Raw Normal View History

export const isHydrated = ref(false)
if (!process.server) {
const nuxtApp = useNuxtApp()
nuxtApp.hooks.hookOnce('app:suspense:resolve', () => {
isHydrated.value = true
})
}