React Data Fetching
Teaches modern React data fetching patterns with TanStack Query, SWR, and Suspense. Use when implementing caching, deduplication, optimistic updates, or parallel loading in React applications.
Install
npx skills add PatternsDev/skills --skill react-data-fetchinggit clone --depth 1 https://github.com/PatternsDev/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/react/react-data-fetching ~/.claude/skills/react-data-fetchingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# React Data Fetching Patterns ## Table of Contents - [When to Use](#when-to-use) - [Instructions](#instructions) - [Details](#details) - [Source](#source) Production-ready patterns for fetching, caching, and synchronizing server data in React applications. These patterns are framework-agnostic — they work whether you're using Vite + React Router, Next.js, Remix, or a custom setup. ## When to Use Reference these patterns when: - Adding data fetching to components - Replacing `useEffect` + `fetch` with a proper data layer - Implementing caching, deduplication, or optimistic updates - Debugging waterfall loading patterns - Choosing between data fetching libraries ## Instructions - Apply these patterns during code generation, review, and refactoring. When you see fetch-in-effect without caching or deduplication, suggest the appropriate pattern. ## Details ### Overview The most common performance problem in React apps is **request waterfalls** — sequential fetches that could run in parallel. The second most common problem is **redundant fetches** — multiple components fetching the same data independently. The patterns below address both, starting with the highest-impact fixes. --- ### 1. Parallelize Independent Fetches with `Promise.all` **Impact: CRITICAL** — Eliminates sequential waterfalls for 2-10x improvement. When multiple fetches have no dependencies on each other, run them concurrently. **Avoid — sequential (3 round trips):**
Details
- Skill name
react-data-fetching- Repository
- PatternsDev/skills
- Path
react/react-data-fetching/SKILL.md- Repo updated
- 15 April 2026
FAQ
What does the React Data Fetching skill do?
Teaches modern React data fetching patterns with TanStack Query, SWR, and Suspense. Use when implementing caching, deduplication, optimistic updates, or parallel loading in React applications.
How do I install the React Data Fetching skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add PatternsDev/skills --skill react-data-fetching. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is React Data Fetching popular?
It lives in PatternsDev/skills, which has 259 GitHub stars and 28 forks.
Related skills
AI UI Patterns
259PatternsDev/skills
Teaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user experience in React.
Async Components
259PatternsDev/skills
Teaches async component loading in Vue for performance optimization. Use when you have heavy components that aren't needed on initial render and can be loaded on demand.
Bundle Splitting
259PatternsDev/skills
Teaches bundle splitting techniques for web performance. Use when your application has a large JavaScript bundle that affects load times or when you need to reduce FCP/LCP.
React Render Optimization
259PatternsDev/skills
Teaches React rendering performance optimization patterns. Use when reducing unnecessary re-renders, optimizing memoization, improving state design, or diagnosing React performance issues.
React Composition 2026
259PatternsDev/skills
Teaches modern React composition patterns for 2025/2026. Use when designing component APIs, building shared UI libraries, or refactoring prop-heavy components.
React Selective Hydration
259PatternsDev/skills
Teaches selective hydration combined with streaming SSR in React 18+. Use when you need to prioritize hydrating interactive components while streaming the rest of the page.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.