question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loading Bar not showing up

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rkrishncommented, Dec 12, 2017

thanks @mironov its working now.

1reaction
mironovcommented, Dec 12, 2017

@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:

import LoadingBar from 'react-redux-loading-bar'
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found