State Management
Async Thunk Flow
Thunk enables async work by letting dispatch accept functions.
Typical flow
- UI dispatches a thunk
- Thunk runs async work
- Thunk dispatches start/success/error actions
- Reducers update state as usual
Why it helps
- Keeps async logic out of components
- Maintains pure reducers