Comments (7)
@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.
@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.
Awesome, thanks! Will take a look at it soon.
from react-redux-loading-bar.
@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.
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.
@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.
Yes; I will try. We are using redux-thunk
as well.
from react-redux-loading-bar.
Related Issues (20)
- Minified react error 321 HOT 1
- Can't get loading bar to stay within parent container HOT 2
- Loading bar is not displayed? HOT 6
- Financing HOT 2
- When array data in response have more than one item - hiding is skipping in production HOT 1
- Update peerDependencies to include React 18 HOT 1
- CreateSlice Redux HOT 1
- Error: Element type is invalid HOT 1
- TypeError: connect is not a function after upgrading to react-redux 9.1.1 HOT 1
- How to use with react-router HOT 2
- It does not render any classname nor interact with the store HOT 2
- Step Progress HOT 1
- RTL Support HOT 1
- Usage without redux HOT 3
- Highlight updates shows up a blinking loading bar. HOT 2
- Facing following issue while using 'react-redux-loading-bar' HOT 1
- `resetLoading()` method is not fully resetting the component. HOT 3
- Loading bar not working with redux-persist HOT 3
- × Could not find "store" in the context of "Connect(LoadingBar)". HOT 3
- Use for polling HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-redux-loading-bar.