Open hooklife opened 6 years ago
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 :)
Hi @hooklife
I'll look into it ;-)