mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(app): finish hydration when the page is loaded (#346)
This commit is contained in:
parent
be255772b2
commit
77874bf4d2
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user