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.

getState in redux-saga?

I have a store with a list of items. When my app first loads, I need to deserialize the items, …

javascript reactjs redux redux-saga
When would bindActionCreators be used in react/redux?

Redux docs for bindActionCreators states that: The only use case for bindActionCreators is when you want to pass some action …

reactjs redux react-redux
Error: This method is only meant to be run on single node. 0 found instead

I am testing a keybinding feature in a component. The component is rather simple, event listener for the keyup and …

reactjs mocha redux enzyme
React Context vs React Redux, when should I use each one?

React 16.3.0 was released and the Context API is not an experimental feature anymore. Dan Abramov (the creator of Redux) wrote …

javascript reactjs redux react-redux react-context
Could not find "store" in either the context or props of "Connect(App)"

I'm having problems with misconfigured Redux after merging contents of multiple files into one to serve as config for Redux. …

javascript reactjs react-native redux react-redux
return promise from store after redux thunk dispatch

I am trying to chain dispatches with redux thunk function simple_action(){ return {type: "SIMPLE_ACTION"} } export function async_action(){ …

javascript redux redux-thunk
Why do I get “Reducer [...] returned undefined during initialization” despite providing initialState to createStore()?

I had set InitialState in my redux createStore method ,and I corresponding InitialState as second arguments I got a error …

javascript redux react-redux
Async actions in Redux

I have a React App, I need to make an ajax call (in order to learn) to a online service (…

javascript asynchronous reactjs redux redux-thunk
Read Store's Initial State in Redux Reducer

Initial state in a Redux app can be set in two ways: pass it as the second argument to createStore (…

javascript reactjs redux
React Redux dispatch action after another action

I have an async action, which fetch data from REST API: export const list = (top, skip) => dispatch => { dispatch({ …

javascript reactjs redux action dispatch