0👍
What I’d do:
Use a spinner loading for you hoverable HTML element and make it visible when sending your request.
this.loading = true; //Some way for disabling the hover event
instance
.get('observations?patientId=37')
.then((response) => {
this.clinicaltabs[0].title = response.data.data;
})
.finally(() => this.loading = false);
Then you could use the v-if="loading"
or something like to control the display of the component until it loads.
Source:stackexchange.com