Coder Social home page Coder Social logo

Comments (7)

mironov avatar mironov commented on May 27, 2024 1

@morgler Please take a closer look at the gif posted. If you check its 16-17 frames you can see that Loading Bar is shown and slowly starting to animate. I agree that the current behavior looks weird and makes the app looks slower than it is.

Loading Bar doesn't get displayed for the first 200ms (default updateTime) in order to skip instant requests. So technically once it is shown, it should animate to 100%.

We can make the final animation quicker or hide Loading Bar right away if it just started the animation. I'll keep the issue open and give it some thought.

Meanwhile, you can set updateTime to a higher value:

<LoadingBar updateTime={500} />

If your requests finish in less than 500ms, Loading Bar will not be shown.

from react-redux-loading-bar.

mironov avatar mironov commented on May 27, 2024

@morgler v2.9.2 includes faster terminating animation that should help with the issue you were seeing. If you still feel that Loading Bar is displayed delayed, please keep the updateTime higher than 200ms.

from react-redux-loading-bar.

morgler avatar morgler commented on May 27, 2024

Awesome, thanks! Will take a look at it soon.

from react-redux-loading-bar.

arman-mukatov avatar arman-mukatov commented on May 27, 2024

@morgler - I do not understand, everything looks smooth and beautiful..

v2.9.2 - Everything has become so fast that it so quickly appears and disappears, it's not beautiful.

from react-redux-loading-bar.

reginaldwhite avatar reginaldwhite commented on May 27, 2024

I am seeing this same behavior using 2.9.3 and manual showLoading() and hideLoading() calls.
In my case the calls are taking around 1-1.5s to resolve; I do not see the bar until the hide call, which animates quickly and goes away.

from react-redux-loading-bar.

mironov avatar mironov commented on May 27, 2024

@reginaldwhite That sounds like a bug. Could you make an example that reproduces the problem? You can take the demo as a starting point.

from react-redux-loading-bar.

reginaldwhite avatar reginaldwhite commented on May 27, 2024

Yes; I will try. We are using redux-thunk as well.

from react-redux-loading-bar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.