DEV Community

Discussion on: Async React Basics with Redux-thunk & Redux-saga

bnorbertjs profile image
Norbert Braun Author

Hi Jordan, thank you!
I think the main advantage saga has over thunk is the testability. Generator functions return iterators. So you can pretty easily see, what's going on in your function by calling .next().

Here's an example to test sagas: