Skip to content

Commit

Permalink
fix(nuxt): clear loading indicator on unmount (#19340)
Browse files Browse the repository at this point in the history
  • Loading branch information
manniL committed Feb 28, 2023
1 parent 32f6cb2 commit 639189c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/components/nuxt-loading-indicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 639189c

Please sign in to comment.