js-stack-from-scratch icon indicating copy to clipboard operation
js-stack-from-scratch copied to clipboard

Async Redux library (redux-thunk alternatives)

Open gondar00 opened this issue 8 years ago • 9 comments

Hi. Thank you for this amazing tutorial.

Why have you chosen redux-thunk over redux-saga?

gondar00 avatar Feb 27 '17 13:02 gondar00

Good question :)

Generators might be a little too intense for people who are not well-versed in JS, and redux-thunk is kind of the "official" way to deal with async actions. The Redux chapter is already the most difficult one. I might replace it by redux-saga in the future if there is a strong demand though.

verekia avatar Feb 28 '17 05:02 verekia

Did you consider Redux Pack ?

gfortaine avatar Mar 05 '17 12:03 gfortaine

The fact that there is 2 different libraries proposed in 2 messages, answers by itself :) Redux-thunk is the logical way to go for a beginner as it's in the Redux doc and most of the tutorials are using it.

Grsmto avatar Mar 05 '17 13:03 Grsmto

...and here's a third candidate: redux-promise :)

icflorescu avatar Mar 07 '17 17:03 icflorescu

And another option: redux-loop.

Links to all options mentioned so far:

roryokane avatar Mar 09 '17 19:03 roryokane

I agree that Redux Thunk is the best choice for basic async workflow. I don't see enough benefit to be using Redux Saga unless the async behaviour becomes quite complex.

rbrtsmith avatar Mar 24 '17 16:03 rbrtsmith

Hello,

To enrich the current thinking, I would greatly appreciate to invite you to a further reading of the following post : What is the right way to do asynchronous operations in Redux? – Decembersoft

Très cordialement / Best Regards,

gfortaine avatar Apr 06 '17 17:04 gfortaine

I thought redux-observable is a worthy alternative

jasonnathan avatar May 21 '18 05:05 jasonnathan