We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
app:suspense:resolve
1 parent c5eb058 commit ceb366bCopy full SHA for ceb366b
1 file changed
src/runtime/app/plugins/session.client.ts
@@ -10,7 +10,7 @@ export default defineNuxtPlugin(async (nuxtApp: NuxtApp) => {
10
|| nuxtApp.$config.public.auth.loadStrategy === 'client-only'
11
) {
12
// To avoid hydration mismatch
13
- nuxtApp.hook('app:mounted', async () => {
+ nuxtApp.hook('app:suspense:resolve', async () => {
14
await useUserSession().fetch()
15
})
16
}
0 commit comments