State Management · Junior · Question 59 of 75

What is createAsyncThunk for?

Explanation

Slices handle those actions in extraReducers to set loading flags and data. For cached server data, RTK Query usually needs less code.

Further reading

Problem with a question

State Management · Junior · question 59

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