Prad M
Prad M

Reputation: 61

What would I use for start async Redux out of following Thunk or Saga or Observable or Redux Promise Middleware?

I finished the Lynda learning react native course. Now I started learning #Redux but for redux async flow we have 1.Thunk 2.Saga 3.Observable 4.Redux Promise Middleware

So I got confuse in selecting any one. Which must be easy to understand.

Upvotes: 3

Views: 285

Answers (2)

Anas
Anas

Reputation: 5727

Redux Thunk is the basic one. I would use that for a simple app.

Redux Thunk with async/await will provide with all the tools you need to do your Ajax and async logic.

If your app is complicated, then you can use redux-saga/redux observable. Those are the most popular ones.

I would choose redux-observable mostly because Observable (RxJS) knowledge is transferable to other areas of your code Why use Redux-Observable over Redux-Saga?

Upvotes: 3

Arun
Arun

Reputation: 557

First start with Redux Thunk itself then u can move to other library, as you well experienced in future

Upvotes: 0

Related Questions