ankurk91 / vue-loading-overlay

Vue.js component for full screen loading indicator :cyclone:
https://ankurk91.github.io/vue-loading-overlay/
MIT License
1.24k stars 101 forks source link

Support for hiding loader after all promises are done #70

Closed abhion closed 3 years ago

abhion commented 3 years ago

If there are multiple ajax calls that call the show(), then if any one of the ajax call is done and calls hide after the response, the loader is hidden but an ajax call is still not done.

It could be like `

`

In every ajax call I can do this.loadCount++, and when it's done, I can do this.loadCount-- so when all the calls are done loadCount will be 0 and loader will be hidden only when all are done.

ankurk91 commented 3 years ago

You can manage this in your code base.