According to documentation, there is a way to manually start the nuxt loading indicator in a component as such:
export default {
methods: {
startLoading() {
this.$root.$loading.start();
},
},
}
Is there any way to toggle the loader from a vuex action? How can I access the $root object from a vuex action?