vue3-progressbar icon indicating copy to clipboard operation
vue3-progressbar copied to clipboard

ProgressBar finished when the request takes to long time

Open TSerra-PT opened this issue 1 year ago • 0 comments

Hello Everyone, I am using this progressbar in vue3 with axios api. Is this my code:

instance.interceptors.request.use((config) => {
  app.$Progress.start(); // for every request start the progress
  return config;
});

instance.interceptors.response.use((response) => {
  app.$Progress.finish(); // finish when a response is received
  return response;
});

My problem is: when the request takes too long (for example: when I am uploading some images) the progressbar finished but the request stills continue in execution and the user thinks that the request finished with success. Is there any way to continue with the progressbar during the time of request?

TSerra-PT avatar Jan 18 '24 13:01 TSerra-PT