Comments (4)
@mironov thanks for the response. Yup you're correct about using the fetching
prop.
Seems to be working now so I will close this issue. Thanks again!
from react-redux-loading-bar.
@tripstar22 Hi there. Am I right that you don't use any promise middleware and you will control the visibility of your ProgressBar
by yourself using the fetching
prop?
If that is true, I think you can import not connected LoadingBar
component and mount it directly.
Something like this should work for you:
import { LoadingBar } from 'react-redux-loading-bar';
# <...> removed styles for the purpose of brevity
const ProgressBar = ({ fetching }) => (
<WrapProgressBar fetching={fetching}>
<header>
<LoadingBar loading={1} style={{ backgroundColor: InfoColor, height: '10px', opacity: '1', zIndex: '100000' }} />
</header>
<GradientOverlay />
</WrapProgressBar>
);
You can also skip the middleware
and reducer
steps because they are needed to show/hide the loading bar automatically during long-running actions.
Please let me know if that helps.
from react-redux-loading-bar.
Hello! @mironov
I've a similar issue. Loading bar is not being displayed.
Here is the store config. I'm using axios.
import promise from 'redux-promise';
import thunk from 'redux-thunk';
import {applyMiddleware, createStore, compose} from 'redux';
import { loadingBarMiddleware } from 'react-redux-loading-bar'
const store = createStore(
reducers,
compose(
applyMiddleware(promise, thunk, loadingBarMiddleware()),
window.devToolsExtension ? window.devToolsExtension() : f => f
)
);
from react-redux-loading-bar.
@hamza-jutt Please open a new issue and show how you mount Loading Bar.
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
- Complete animation on hideLoading HOT 2
- [Question] Does this support the [email protected]? HOT 4
- 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.