State Management · Junior · Question 32 of 75

Where should a request to the server live in Redux Toolkit?

Explanation

Reducers must be pure. createAsyncThunk dispatches pending/fulfilled/rejected around the request; for cached server data RTK Query is usually simpler.

Further reading

Problem with a question

State Management · Junior · question 32

Test yourself

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

Take this quiz