We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When axios encounters a connection refused error, the progress bar doesn't disappear when the request has failed.
The text was updated successfully, but these errors were encountered:
fix:
setupStopProgress = () => { const responseFunc = (response) => { if ((--this.requestsCounter) === 0) { NProgress.done(); } return response; }; const errorFunc = (error) => { return Promise.reject(error).then(this.reset, this.reset); }; this.instance.interceptors.response.use(responseFunc, errorFunc); }; reset() { NProgress.remove(); }
Sorry, something went wrong.
No branches or pull requests
When axios encounters a connection refused error, the progress bar doesn't disappear when the request has failed.
The text was updated successfully, but these errors were encountered: