elk/plugins/hydration.client.ts
2023-01-02 00:18:05 +01:00

5 lines
140 B
TypeScript

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