hilongjw / vue-progressbar

A lightweight progress bar for vue
http://hilongjw.github.io/vue-progressbar
MIT License
1.46k stars 162 forks source link

Using progress bar with axios interceptors is causing hanging isssues #91

Open SDVII opened 5 years ago

SDVII commented 5 years ago

Description: I have implemented some axios interceptors to refresh the auth token. After the implementation, the progress bar sometimes keeps loading and prevents navigation. The issue was resolved after commenting out the progress bar.

Steps to reproduce

  1. Implement some lengthy axios interceptors (something that depends on a promise or something similar)
  2. Add the progress bar to your default view
  3. Perform some navigations while triggering the interceptor