8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
page:loading:end
1 parent 4eedbca commit fbbe101Copy full SHA for fbbe101
packages/nuxt/src/pages/runtime/page.ts
@@ -142,8 +142,10 @@ export default defineComponent({
142
const willRenderAnotherChild = hasChildrenRoutes(forkRoute, routeProps.route, routeProps.Component)
143
if (!nuxtApp.isHydrating && previousPageKey === key && !willRenderAnotherChild) {
144
nextTick(() => {
145
- pageLoadingEndHookAlreadyCalled = true
146
- nuxtApp.callHook('page:loading:end')
+ if (!pageLoadingEndHookAlreadyCalled) {
+ pageLoadingEndHookAlreadyCalled = true
147
+ nuxtApp.callHook('page:loading:end')
148
+ }
149
})
150
}
151
0 commit comments