What problem does it solve?
Frontend applications frequently implement HTTP data fetching and error handling with ad-hoc patterns, resulting in inconsistent UX and maintenance challenges.
This skill standardizes asynchronous data fetch patterns by unifying Fetch API and Axios usage, providing a centralized service layer, and enabling AbortController cancellation to ensure predictable loading and error workflows.
Core Features & Use Cases
- Unified HTTP client built around Fetch API or Axios with shared configuration and optional interceptors.
- Centralized async patterns integrated with Redux Toolkit's createAsyncThunk for pending/fulfilled/rejected states.
- Support for request cancellation using AbortController to prevent memory leaks on unmount.
- Clear loading, success, and error state handling across endpoints to improve consistency.
Quick Start
Configure a Redux Toolkit async thunk with a shared apiClient to fetch data and manage loading and error states.