Should I use redux-thunk or saga?

Saga works like a separate thread or a background process that is solely responsible for making your side effects or API calls unlike redux-thunk, which uses callbacks which may lead to situations like ‘callback hell’ in some cases. However, with the async/await system, this problem can be minimized in redux-thunk.

Sizin İçin Seçtik  Is it necessary to use middleware in Redux?

Leave a Reply

Your email address will not be published. Required fields are marked *