mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
fix(nuxt): clear loading indicator on unmount (#19340)
This commit is contained in:
parent
32f6cb27b7
commit
639189ca88
@ -32,7 +32,7 @@ export default defineComponent({
|
||||
const nuxtApp = useNuxtApp()
|
||||
nuxtApp.hook('page:start', indicator.start)
|
||||
nuxtApp.hook('page:finish', indicator.finish)
|
||||
onBeforeUnmount(() => indicator.clear)
|
||||
onBeforeUnmount(indicator.clear)
|
||||
|
||||
return () => h('div', {
|
||||
class: 'nuxt-loading-indicator',
|
||||
|
Loading…
Reference in New Issue
Block a user