data-fetching-architecture
A reference skill in the LobeHub repository, not called directly by users, on how server data moves through LobeHub's web front end.
What the skill teaches
A reference skill in the LobeHub repository, not called directly by users, on how server data moves through LobeHub's web front end. Services own API calls, stores expose fetch hooks that keep a replica of server data, and components read through selectors. New server data must use the project's replica library rather than new SWR keys, which a test freezes. It covers keeping read and refresh parameters the same, skipping requests without a required ID, avoiding fetches in effects, optimistic updates with rollback, telling an unloaded result from an empty one, showing first-load errors, keeping content during background failures, and moving old effect-based fetching into store hooks.
Capabilities
- Add server data through replica-backed store hooks
- Write mutations with optimistic updates and rollback
- Render loading, empty and error states correctly
- Migrate effect-based fetching to store hooks
About
- Publisher
- LobeHub
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- references/home-first-paint.md
- references/walkthrough.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Not stated in its documentation | |
| Publisher | LobeHub | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 202684,974 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
Sources
- Skill file (SKILL.md)github.com/lobehub/lobehubNov 16, 2026
- GitHub repositorygithub.com/lobehub/lobehub · Backs: Publisher, ActivityNov 11, 2026
- Skill file (SKILL.md)github.com/lobehub/lobehub · Backs: LicenceNov 10, 2026
- Folder in the repository (data-fetching-architecture)github.com/lobehub/lobehub · Backs: Includes scriptsNov 10, 2026