Create templates to quickly answer FAQs or store snippets for re-use.
Thanks for the nice article. Since you're already familiarized yourself with thunks and sagas, you should probably learn about epics in redux-observables. I find them a cleaner abstraction of side effects in redux than the other options. The only problem is that they are so powerful, you'll soon end up using epics for everything.
Everyone keeps recommending redux-observables, will definitely check it out.
Hi Alex, thanks for the hint I'll definitely check it out!
Awesome Article, great to see the Cat API being used to teach, thanks Norbert!
Thanks, Aden great api by the way :)
Awesome stuff. When deciding between the two I chose Redux-Thunk just because it clicked faster. I've been curious about Saga lately, what's the advantage?
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: redux-saga.js.org/docs/basics/Disp...
In depth article on redux-thunk and redux-saga. Thanks for writing wonderful article.
Thanks, glad you like it. :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.