Top "Redux" questions

Redux is a pattern and library for managing JavaScript application state, using events called "actions". It serves as a centralized store for state that is needed across your entire application, with rules ensuring that the state can only be updated in a predictable fashion.

How to dispatch a Redux action with a timeout?

I have an action that updates the notification state of my application. Usually, this notification will be an error or …

javascript redux react-redux timeout
How to reset the state of a Redux store?

I am using Redux for state management. How do I reset the store to its initial state? For example, let’…

javascript redux store redux-store
React - Display loading screen while DOM is rendering?

This is an example from Google Adsense application page. The loading screen displayed before the main page showed after. I …

reactjs asynchronous redux
Why use Redux over Facebook Flux?

I've read this answer, reducing boilerplate, looked at few GitHub examples and even tried redux a little bit (todo apps). …

javascript reactjs reactjs-flux flux redux
What is mapDispatchToProps?

I was reading the documentation for the Redux library and it has this example: In addition to reading the state, …

reactjs redux react-redux
What is the best way to redirect a page using React Router?

I am new to React Router and learn that there are so many ways to redirect a page: Using browserHistory.…

reactjs redux react-router
Axios get in url works but with second parameter as object it doesn't

I'm trying to send GET request as second parameter but it doesn't work while it does as url. This works, $_…

reactjs react-native redux axios
Re-render React component when prop changes

I'm trying to separate a presentational component from a container component. I have a SitesTable and a SitesTableContainer. The container …

reactjs redux react-redux
Attach Authorization header for all axios requests

I have a react/redux application that fetches a token from an api server. After the user authenticates I'd like …

reactjs redux axios
How do I access store state in React Redux?

I am just making a simple app to learn async with redux. I have gotten everything working, now I just …

javascript asynchronous reactjs redux react-redux