mironov / react-redux-loading-bar

Loading Bar (aka Progress Bar) for Redux and React
https://mironov.github.io/react-redux-loading-bar/
MIT License
936 stars 93 forks source link

Use for polling #99

Open faizaankhan opened 4 years ago

faizaankhan commented 4 years ago

I am using this awesome lib to show a loading bar during short polling. The problem I have is the bar can't be slowed down, it just runs to the end at 95% and then waits for the hide method to be invoked. Also, there is no end animation, which could ensure that the bar moved 100% to the users.

mironov commented 4 years ago

@faizaankhan Hi there. Thank you for your kind words. You can increase updateTime or decrease progressIncrease to slow down the progress simulation. Please see how to pass them at https://github.com/mironov/react-redux-loading-bar#configure-progress-simulation

Also, there is no end animation, which could ensure that the bar moved 100% to the users.

I can see the ending animation in the demo: https://mironov.github.io/react-redux-loading-bar/ Could you confirm that you don't see it in the demo?

faizaankhan commented 4 years ago

@mironov Thanks for reaching back, ending animation is not working for me. No problem in the demo. The thing is I explicitly call the stop function. On that case, the ending animations don't seem to work.