Closed the94air closed 6 years ago
import NProgress from 'nprogress';
NProgress.configure({
easing: 'linear',
speed: 350
});
Axios.defaults.transformRequest.push(function (data, headers) {
NProgress.start();
return data;
})
Axios.defaults.transformResponse.push(function (data, headers) {
NProgress.done();
return data;
})
Awesome.Pace progress is not maintained any more And nprogress is a perfect replacement. Thanks @s00d https://jsfiddle.net/the94air/bpzyyay9/
@the94air since the isssue is resolved could you close it?
Oops, forgot about that.
How to integrate the progress with axios library (restart with any ajax request)?