| name | api-data-fetcher |
| description | Efficiently fetch, cache, and display dynamic data from APIs. |
API Data Fetcher
This skill handles communication between the frontend and backend, managing loading states and data synchronization.
Instructions
- Use tools like TanStack Query (React Query) for smart caching and re-fetching.
- Implement optimistic updates for better user experience.
- Handle loading, error, and empty states gracefully.
- Set up headers and authentication for secure requests.
- Transform raw API data into usable frontend models.
Examples
- "Fetch user profiles from a JSON API and handle the loading state."
- "Implement an optimistic update for a 'delete comment' feature."