Static GitHub Issues

[2208] Show default Progress Bar when loading data

prev: nuxt:render Rendering url / always show undefined
next: Event listener doesn't remove when route to other page

Is there any best practise to display the lovely Progress bar which comes with nuxt, at any time from a component or from a mutation in the store (for example: showing the progress of data being loaded or a form being submitted)?

I tried it with calling this.$nuxt.$loading.start() which does not work all the time (at some points $nuxt was undefined).

Big thanks in advance!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1946">#c1946</a>)</em></sub></div>