aligajani
1 month ago
153
1
Vue

What do you guys use to display a loader icon for a component while its HTTP request is processing?

Posted 1 month ago by aligajani

I was thinking something like this.

<show-loader>
   <component-that-makes-http-request/>
</show-loader>

It is quite painful to have a loading logic set in every component that makes HTTP requests, using data, this and that to set things to true and false after Promises resolve. I am sure you guys are using something more sublime, just curious.

Please sign in or create an account to participate in this conversation.