Design Patterns · Senior · Question 36 of 75
How does redux-saga differ from listener middleware and thunks?
- ✓Correct answer: A saga describes complex async flows with generators
- 2A saga runs synchronously and can't make requests
- 3Saga is the old name of
createAsyncThunk
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.