fix(app): finish hydration when the page is loaded (#346)

This commit is contained in:
Daniel Roe 2021-07-21 21:06:05 +01:00 committed by GitHub
parent be255772b2
commit 77874bf4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,11 +43,14 @@ if (process.client) {
await nuxt.hooks.callHook('app:created', app)
await nuxt.hooks.callHook('app:beforeMount', app)
nuxt.hooks.hookOnce('page:finished', () => {
nuxt.isHydrating = false
})
app.mount('#__nuxt')
await nuxt.hooks.callHook('app:mounted', app)
await nextTick()
nuxt.isHydrating = false
}
entry().catch((error) => {