Try it with following parameters as suggested here;
commit('TOGGLE_LOADING', null, { root: true })
If you have namespaced set to true (in Nuxt that’s the default when in modules mode), this becomes:
commit('loading/TOGGLE_LOADING', null, { root: true })