Simplify Redux REQUEST, SUCCESS, FAILURE Pattern
Request Success Failure is common pattern on redux for async action. For example, let’s say you have login action which need api call, first you dispatch request action which set the loading state to be true, so the ui can display nice loading indicator. If the request success…