Home > other >  I want to use redux saga instead of redux thunk. Will this cause any problems in future in my applic
I want to use redux saga instead of redux thunk. Will this cause any problems in future in my applic

Time:01-05

I'm usually used to React Saga so I want to use Redux Tool Kit and Saga. Butt is confused about whether this will be a problem later.

CodePudding user response:

There is no probleem if you configure it correcly, I have used it in more ylthan 3 large projects with complex flow but didn't have a problem in saga

CodePudding user response:

Redux-saga works perfectly fine with Redux Toolkit.

Keep in mind though that Redux Saga is only useful in very complicated scenarios and almost no apps are complicated enough to really warrant it's use. That's why the official Redux Style guide recommends to use Thunks for async logic until you come to a point where it is not sufficient any more.

You can also easily combine thunks and saga in the same app, using the more simple thunks per default and only using sagas where you really need them, keeping the mental load down.

  •  Tags:  
  • Related