Top "Redux-thunk" questions

Thunk middleware for Redux.

Why do we need middleware for async flow in Redux?

According to the docs, "Without middleware, Redux store only supports synchronous data flow". I don't understand why this is the …

javascript asynchronous reactjs redux redux-thunk
Pros/cons of using redux-saga with ES6 generators vs redux-thunk with ES2017 async/await

There is a lot of talk about the latest kid in redux town right now, redux-saga/redux-saga. It uses generator …

javascript reactjs redux redux-thunk redux-saga
How to listen for specific property changes in Redux store after an action is dispatched

I am currently trying to conceptualize how to handle dispatching an action in a component based on a data change …

reactjs redux redux-thunk
how to async/await redux-thunk actions?

action.js export function getLoginStatus() { return async(dispatch) => { let token = await getOAuthToken(); let success = await verifyToken(token); if (success == …

reactjs react-native react-redux redux-thunk ecmascript-2017
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
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
Redux Router - "Dispatch is not defined"

I've got a simple component that calls an action when a user loads a page, and inside that action, I'm …

javascript reactjs redux react-redux redux-thunk
How to use axios / AJAX with redux-thunk

Im using axios inside my action. I need to know if this is the right way to do it or …

javascript reactjs redux redux-thunk axios
Testing dispatched actions in Redux thunk with Jest

I'm quite new to Jest and admittedly am no expert at testing async code... I have a simple Fetch helper …

reactjs redux fetch jestjs redux-thunk
How to add multiple middleware to Redux?

I have one piece of middleware already plugged in, redux-thunk, and I'd like to add another, redux-logger. How do I …

reactjs redux react-redux middleware redux-thunk