Redux Toolkit 11 ⚛️ Thunk Dispatch — Dispatching additional actions inside thunks
A thunk is not limited to one action. The payload creator of a createAsyncThunk receives the thunkAPI object, which includes dispatch, and the thunk can dispatch any number of other actions before, during, or after the async operation. The previous chapters covered the three lifecycle actions that createAsyncThunk generates automatically; this chapter covers the actions…