Design Patterns · Senior · Question 36 of 75

How does redux-saga differ from listener middleware and thunks?

Explanation

Generators with take, race and cancel effects let you describe long-running processes declaratively and test them step by step. The cost is complexity and a learning curve. RTK recommends thunks and listener middleware for most tasks.

Further reading

Problem with a question

Design Patterns · Senior · question 36

Test yourself

Take the Design Patterns · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz