web-data-fetching-swr

Installation
SKILL.md

SWR Patterns

Quick Guide: SWR renders the cached value immediately and revalidates behind it, so the cache key is the whole identity of a request and an unstable key is the single most expensive mistake here. isLoading covers the first fetch only and isValidating covers every fetch, which is why using the second as a spinner hides the data SWR exists to show. Reads are useSWR, writes are useSWRMutation, and a null key is how a request is skipped without breaking the rules of hooks.

Detailed Resources:

Installs
23
GitHub Stars
24
First Seen
Apr 7, 2026
web-data-fetching-swr — agents-inc/skills