progress-bar-4-axios icon indicating copy to clipboard operation
progress-bar-4-axios copied to clipboard

Load never ends

Open emersonsiega opened this issue 6 years ago • 9 comments

I think maybe there's an issue. I'm trying to use it with axios 0.18.0.

When I refresh the page or make a request, the loading bar starts but never ends. Looking on devTools, all the requests are finished.

I'm setting up this way:

import { loadProgressBar } from 'axios-progress-bar'
import 'axios-progress-bar/dist/nprogress.css'

loadProgressBar({ showSpinner: false })

emersonsiega avatar Sep 29 '18 19:09 emersonsiega

Same here

wrabit avatar Oct 17 '18 21:10 wrabit

Same problem

vicenteferreyra avatar Oct 18 '18 19:10 vicenteferreyra

I was able to fix it by adding an instance as the second parameter of loadProgressBar()

vicenteferreyra avatar Oct 18 '18 20:10 vicenteferreyra

I had no issues just using the native nprogress package https://www.npmjs.com/package/nprogress

wrabit avatar Oct 18 '18 21:10 wrabit

I have the same issue when the request aborted

ramjak avatar Oct 23 '18 04:10 ramjak

I could make it ends by installing NProgress and restarting loading by using NProgress.start() and NProgress.done(). But it would be better if the package could expose the NProgress that it used.

ramjak avatar Oct 23 '18 06:10 ramjak

if anyone is still wondering, use this as a reference.

let api = Axios.create({...})
loadProgressBar('',api)

professorhaseeb avatar Mar 26 '19 14:03 professorhaseeb

same here

madhu131313 avatar Aug 12 '19 12:08 madhu131313

if anyone is still wondering, use this as a reference.

let api = Axios.create({...})
loadProgressBar('',api)

Work for me! thanks

itsalb3rt avatar Mar 08 '20 02:03 itsalb3rt