forked from Mirrors/elk
8 lines
184 B
TypeScript
8 lines
184 B
TypeScript
export const isHydrated = ref(false)
|
|
|
|
if (!process.server) {
|
|
const nuxtApp = useNuxtApp()
|
|
nuxtApp.hooks.hookOnce('app:suspense:resolve', () => {
|
|
isHydrated.value = true
|
|
})
|
|
}
|