elk/plugins/hydration.client.ts

6 lines
140 B
TypeScript
Raw Normal View History

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hooks.hookOnce('app:suspense:resolve', () => {
isHydrated.value = true
})
})