Loading Bar not showing up
See original GitHub issueHi I am using react/redux with react-redux-loading-bar plugin here is my store and saga and UI component. Could any one tell what i am doing wrong here.
SAGA.js
const filterGetData = function* ( action ) {
try {
yield put(showLoading())
const users = yield call(fetchUsers,action.payload);
yield put({type: 'USERS_RECIEVED', users})
} catch (error) {
yield put({type: 'LOAD_USERS_FAILURE', error})
}finally {
yield put(hideLoading())
}
};
export function* watchForUsers() {
while(true) {
const action = yield take('LOAD_USERS');
yield fork(filterGetData, action);
}
}
Index.js
const rootReducers = combineReducers({
appReducer,
loadingBar: loadingBarReducer,
})
const store = createStore(
rootReducers,
applyMiddleware(sagaMiddleware ,loadingBarMiddleware())
);
sagaMiddleware.run(watchForUsers);
Ui component
<header>
<LoadingBar style={{zIndex: 99999}}/>
</header>
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
React Redux Loading Bar not showing up - Stack Overflow
I have a problem with using React Redux Loading Bar.it is not showing up.I'm using immutable js, redux immutable library in root reducer....
Read more >If your Mac starts up to an Apple logo or progress bar
Your Mac shows an Apple logo when it finds your built-in or external startup disk. As startup continues, you should see a progress...
Read more >Progress bar stuck (Loading Issue) - Kognito Support Center
Sometimes the loading screen's progress bar will appear to be stuck during launch. Here are some suggestions for how you can resolve this ......
Read more >Win 10 progress bar missing, system image hard to find
I'm doing a file backup in Win 10, and there's no bar or indicator that I can see that tells me how far...
Read more >Don't see the loading / progress bar at the top #6262 - GitHub
When i am setting custom loading component, progress bar is not showing for axios requests. Could you help me?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks @mironov its working now.
@rkrishn Passing the loading prop shouldn’t be needed as it is pulled from the store by the connected Loading Bar component. It is exported via the default export.
https://github.com/rkrishn/github_user_search/blob/b43fed97ef6ee69f7c2db2921299f2b4d6fa53dc/src/components/App.js#L5
Looks like you’re importing the bare UI component that doesn’t connect itself to the store. Please change the line to: