Redux Saga benefits
In more complex applications with well defined routines, Redux Saga outshines Redux Thunk. Once you run into a need to cancel, rerun, or reply to part of the flow, it is not immediately obvious how these can be done using Thunks or plain Redux. With composable sagas and well-maintained iterators, you can do it with ease. Even the official documentation provides recipes for such problems. (See the Further reading section at the end of this chapter for reference.)
The dark side of such a powerful library is its problematic usage in brownfield applications. Such applications, with features possibly written in a promise-based or Thunk fashion, may require a significant refactor in order to be used with sagas with the ease ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access