progress-bar-4-axios
progress-bar-4-axios copied to clipboard
Load never ends
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 })
Same here
Same problem
I was able to fix it by adding an instance as the second parameter of loadProgressBar()
I had no issues just using the native nprogress package https://www.npmjs.com/package/nprogress
I have the same issue when the request aborted
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.
if anyone is still wondering, use this as a reference.
let api = Axios.create({...})
loadProgressBar('',api)
same here
if anyone is still wondering, use this as a reference.
let api = Axios.create({...}) loadProgressBar('',api)
Work for me! thanks