State Management
createAsyncThunk
createAsyncThunk is RTK’s standard helper for async work.
What it generates
${typePrefix}/pending${typePrefix}/fulfilled${typePrefix}/rejected
How it fits
- You dispatch the thunk
- RTK runs the async function
- Reducers handle the three states in
extraReducers