lobehub avatar

Data Fetching

Architecture guide that routes data fetching through a Service layer, Zustand store, and SWR for React apps.

skills.sh installs
812
GitHub stars
86K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the flow from service creation to store hooks, plus migrating existing useEffect fetching to the new pattern
  • Designed for React projects that load data through API calls and want one consistent fetching structure

Install

$ npx -y skills add lobehub/lobehub --skill data-fetching -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Architecture guide that routes data fetching through a Service layer, Zustand store, and SWR for React apps. Covers the flow from service creation to store hooks, plus migrating existing useEffect fetching to the new pattern. Designed for React projects that load data through API calls and want one consistent fetching structure.

Browse the repository on GitHub

Details

Repository
github.com/lobehub/lobehub
Category
Frontend & UI Code
First seen
May 16, 2026

More from lobehub/lobehub

All 21

Similar to Data Fetching

More Frontend & UI Code