Showing posts with label redux-saga. Show all posts
Showing posts with label redux-saga. Show all posts

Thursday, February 22, 2018

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 case. Why can't the container component call the async API, and then dispatch the actions? For example, imagine a simple UI: a field and a button.

Wednesday, April 26, 2017

Managing Side Effects In React + Redux Using Sagas



Redux is a Flux-like framework that has exploded in popularity within the React community. It reduces complexity by enforcing a unidirectional data flow, the use of single state atom, and pure reduce functions for state updates.

redux-saga/redux-saga



redux-saga redux-saga is a library that aims to make side effects (i.e. asynchronous things like data fetching and impure things like accessing the browser cache) in React/Redux applications easier and better.

bundlephobia

JavaScript bloat is a more real problem today than it ever was. Bundlephobia lets you understand the performance cost of adding a npm pack...