DEV Community

Discussion on: Adding VueJS Loading State Indicators (Promises)

Collapse
 
rolandcsibrei profile image
Roland Csibrei • Edited

Thanks for the article. If you have a global loader, I think, the VUE global event bus should do a cleaner job. If Vuex is used in the project, it can be used to hold the loading status globally.

Collapse
 
albertmarashi profile image
AlbertMarashi

Actually I prefer having it separated, different components can be doing different operations at the same time, and each one could have it's own loading state.

Eg: a dashboard is loading with each grid item loading it's own data