On pages/tags.vue I am using this to fetch my api :
async fetch () {
this.fetchresults = await this.$http.$get('https://api.domain/tags')
this.tags = this.fetchresults.results;
},
Its working fine but when I try to do the same thing from layouts/default.vue 90% of the time the tags is empty, its seem to only work once when I update my code then when I refresh tags is empty again. I cant use async fetch from the layout ?