-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
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
how to disable progress-bar on some special request. #4
Comments
Hi @hooklife I'll look into it ;-) |
Would love to see this feature as well 👍 |
That would be interesting. for example, i would hide the bar on certain pages/ route of my application. |
You could use two Axios instances: import axios from 'axios'
import { loadProgressBar } from 'axios-progress-bar'
const axiosWithProgress = axios.create()
const axiosWithoutProgress = axios.create()
loadProgressBar({}, axiosWithProgress)
axiosWithProgress.get()
axiosWithoutProgress.get() |
I would really like to see this feature as well, love the package. having two instances is dirty, as soon as you get in to maintaining tokens and interceptors for both of em. using fetch api not to trigger the progress bar faces the same issue. This functionality is very useful when you want to limit the progress loader to navigation loading, and disable it for searching, uploading files, validation etc... |
Up pls |
This would be great to set some flag on the axios request to not show the loading bar. Until then, there is always CSS :) |
No description provided.
The text was updated successfully, but these errors were encountered: