Skip to content
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

Open
hooklife opened this issue Apr 18, 2018 · 7 comments · May be fixed by #20
Open

how to disable progress-bar on some special request. #4

hooklife opened this issue Apr 18, 2018 · 7 comments · May be fixed by #20

Comments

@hooklife
Copy link

No description provided.

@hooklife hooklife changed the title can i want disable progress-bar with some special request. can i disable progress-bar on some special request. Apr 18, 2018
@hooklife hooklife changed the title can i disable progress-bar on some special request. how to disable progress-bar on some special request. Apr 18, 2018
@rikmms
Copy link
Owner

rikmms commented Apr 27, 2018

Hi @hooklife

I'll look into it ;-)

@survivorbat
Copy link

survivorbat commented May 9, 2018

Would love to see this feature as well 👍

@andrehsmendes
Copy link

That would be interesting.

for example, i would hide the bar on certain pages/ route of my application.

@kschaper
Copy link

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()

@T0shik
Copy link

T0shik commented Mar 10, 2019

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...

@theonoel
Copy link

Up pls

@T0shik T0shik linked a pull request Jul 19, 2020 that will close this issue
@csicky
Copy link

csicky commented Mar 2, 2023

This would be great to set some flag on the axios request to not show the loading bar. Until then, there is always CSS :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants