Skip to content

Commit ceb366b

Browse files
authored
fix: use app:suspense:resolve hook (#505)
1 parent c5eb058 commit ceb366b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/app/plugins/session.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineNuxtPlugin(async (nuxtApp: NuxtApp) => {
1010
|| nuxtApp.$config.public.auth.loadStrategy === 'client-only'
1111
) {
1212
// To avoid hydration mismatch
13-
nuxtApp.hook('app:mounted', async () => {
13+
nuxtApp.hook('app:suspense:resolve', async () => {
1414
await useUserSession().fetch()
1515
})
1616
}

0 commit comments

Comments
 (0)