React — Why use TaskRunner over Redux, useReducer
What is the story?
In recent months I’ve spent some time with Redux and useReducer and while I like the idea of having all my larger stateful logic located in one place there were a few things I did not like.
- because the Reducer must return the new state/store, it made it impossible to do asynchronous actions in the reducer without turning your state into a promise. So you’d have to do asynchronous actions prior to calling dispatch which still leaves some of the logic inside your components.