State Management · Senior · Question 10 of 75

What is createListenerMiddleware for?

Explanation

A lightweight alternative to sagas: startListening({ actionCreator: todoAdded, effect: async (action, api) => {...} }). Effects can wait for other actions (take), cancel, debounce and read state before/after.

Further reading

Problem with a question

State Management · Senior · question 10

Test yourself

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

Take this quiz