No Use Effect
mattiacerutti/supernova
Enforce the no-useEffect rule when writing or reviewing React code.
React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards.
$ npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pproenca/dot-skills react-fetch-cache-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/react-fetch-cache-patterns .claude/skills/react-fetch-cache-patterns && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "react-fetch-cache-patterns" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/react-fetch-cache-patterns into .claude/skills/react-fetch-cache-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-fetch-cache-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/react-fetch-cache-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pproenca/dot-skills react-fetch-cache-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/.experimental/react-fetch-cache-patterns .agents/skills/react-fetch-cache-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "react-fetch-cache-patterns" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/react-fetch-cache-patterns into .agents/skills/react-fetch-cache-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-fetch-cache-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pproenca/dot-skills react-fetch-cache-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/.experimental/react-fetch-cache-patterns .cursor/skills/react-fetch-cache-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "react-fetch-cache-patterns" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/react-fetch-cache-patterns into .cursor/skills/react-fetch-cache-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-fetch-cache-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pproenca/dot-skills.git --path skills/.experimental/react-fetch-cache-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pproenca/dot-skills react-fetch-cache-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/.experimental/react-fetch-cache-patterns .gemini/skills/react-fetch-cache-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "react-fetch-cache-patterns" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/react-fetch-cache-patterns into .gemini/skills/react-fetch-cache-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-fetch-cache-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pproenca/dot-skills react-fetch-cache-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/.experimental/react-fetch-cache-patterns .github/skills/react-fetch-cache-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "react-fetch-cache-patterns" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/react-fetch-cache-patterns into .github/skills/react-fetch-cache-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-fetch-cache-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pproenca/dot-skills react-fetch-cache-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/.experimental/react-fetch-cache-patterns .opencode/skills/react-fetch-cache-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "react-fetch-cache-patterns" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/react-fetch-cache-patterns into .opencode/skills/react-fetch-cache-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-fetch-cache-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
react-fetch-cache-patternsReact data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards.
React Fetch Cache Patterns is an agent skill from pproenca/dot-skills. React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards. Covers request orchestration (parallelism, batching, deduplication), cache strategy (keys, normalization, staleTime, SWR), backend protection (concurrency caps, debounce/throttle, jittered retries, circuit breakers), prefetching (route loaders, hover/intent, idle, server hydration), failure resilience (AbortController, timeouts, error boundaries, stale fallback, idempotent mutations), and…
Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 61 other files, including reference files and assets (for example `AGENTS.md`, `assets/templates/_template.md` and `assets/templates/request-collapser.template.ts`).
It sits in Development, covering Caching, React components and Error handling. It works with React. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (TypeScript, from the files we listed), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
React Fetch Cache Patterns loads about 3k tokens when it runs, and up to ~44k if it reads all its reference files. Until then it costs about 231 tokens; SKILL.md has 838 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 838 words, ~2,959 tokens.
.claude/skills/react-fetch-cache-patterns/SKILL.md (or your agent's skills folder). This skill also uses 58 other files; get the full folder from GitHub.Implementation patterns for React applications that fetch and cache many API requests without overwhelming the backend. 48 rules across 8 categories, ordered by execution lifecycle impact — earlier categories cascade through everything downstream. Templates show both library-based (TanStack Query, SWR) and library-free (pure React + AbortController) implementations so the patterns are usable regardless of stack constraints.
fetch, useQuery, useSWR, or any data-fetching hook| # | Category | Impact | Prefix | Rules |
|---|---|---|---|---|
| 1 | Request Orchestration | CRITICAL | orch- | 7 |
| 2 | Cache Strategy | CRITICAL | cache- | 7 |
| 3 | Backend Protection | CRITICAL | protect- | 7 |
| 4 | Prefetch & Hydration | HIGH | prefetch- | 6 |
| 5 | Failure Resilience | HIGH | resilience- | 6 |
| 6 | Feed & Carousel Patterns | MEDIUM-HIGH | feed- | 7 |
| 7 | Mutation & Invalidation | MEDIUM | mutate- | 4 |
| 8 | Component Patterns | MEDIUM | render- | 4 |
orch-parallelize-independent-fetches — Use Promise.all for independent requests; never serial awaitorch-batch-n-plus-one-fanout — Collapse per-row fetches via DataLoader-style batchingorch-dedupe-in-flight-requests — One in-flight request per key, shared across subscribersorch-lift-fetch-to-route-loader — Fetch in parallel with route chunk downloadorch-avoid-effect-chains — Flatten the dependency graph; only true dependencies waitorch-server-fetch-when-possible — Move fetches to RSC/server when they don't depend on client stateorch-prefer-bulk-endpoint-for-fanout — One bulk request beats N parallel requestscache-deterministic-keys — Canonicalize cache keys; strip undefined, sort arrayscache-normalize-shared-entities — Store each entity once; views hold referencescache-set-stale-time — Tune staleTime to data volatility, not refresh frequencycache-stale-while-revalidate — Render stale instantly; revalidate in backgroundcache-select-subscribed-fields — Subscribe to slices, not whole objectscache-shared-key-factory — One typed source of truth for keys; prevents read/write driftcache-tiered-stale-fresh — Different staleTime per data class (realtime, fresh, warm, cold, static)protect-concurrency-limit-fanout — Cap simultaneous requests with p-limit/semaphoreprotect-collapse-identical-requests — In-flight dedup at the fetch layerprotect-debounce-user-driven-fetches — Wait for user pause before firing search/filter requestsprotect-throttle-scroll-triggered — Use IntersectionObserver for viewport-triggered fetchesprotect-jittered-retry-backoff — Add random jitter to prevent thundering-herd retriesprotect-circuit-breaker — Stop calling persistently failing endpoints for a cooldown windowprotect-rate-limit-aware-client — Honor Retry-After and X-RateLimit-* headersprefetch-hover-intent-links — Prefetch on hover/pointerdown for instant navigationprefetch-parallel-loader-queries — Parallelize independent queries inside loadersprefetch-hydrate-server-cache — Ship server-fetched data via HydrationBoundary / RSCprefetch-idle-likely-next — Use requestIdleCallback for likely-next dataprefetch-viewport-triggered-next-page — Fire next-page prefetch via rootMarginprefetch-budget-and-priority — Tier prefetches by priority; respect Save-Dataresilience-abort-on-unmount — Forward AbortSignal to cancel stale fetchesresilience-bounded-timeouts — Set per-endpoint timeouts via AbortSignal.timeout()resilience-scoped-error-boundaries — One boundary per data section, not per pageresilience-stale-fallback — Render stale cache when fresh fetch failsresilience-no-auto-retry-mutations — Use idempotency keys or don't auto-retryresilience-graceful-degradation — Critical/important/decorative tiers with different failure modesfeed-virtualize-long-lists — Use TanStack Virtual for lists > 50 itemsfeed-cursor-pagination — Cursors beat offset for inserts and large offsetsfeed-split-summary-from-detail — Carousel summaries lightweight; detail on demandfeed-multi-carousel-isolation — Per-carousel error/Suspense boundaries + tiered fallbacks for homepage feedsfeed-stable-keys-across-pages — Use entity IDs as keys; never indexfeed-image-lazy-and-sized — loading="lazy" + explicit dimensionsfeed-bounded-working-set — maxPages + entity LRU eviction for unbounded feedsmutate-optimistic-updates-with-rollback — Snapshot, optimistic write, rollback on errormutate-surgical-invalidation — Invalidate specific keys, not entire treesmutate-set-data-over-invalidate — Write mutation responses directly into the cachemutate-cancel-queries-on-mutate — Cancel in-flight queries before optimistic writesrender-stable-query-keys — useMemo object keys to keep references stablerender-cap-fanout-in-lists — Lift fetches; batch via DataLoader; virtualizerender-suspense-per-section — One Suspense boundary per data sectionrender-colocate-fetch-with-consumer — Put useQuery next to its consumer, not at the rootSix ready-to-adapt code templates under assets/templates/:
| Template | Library deps | Purpose |
|---|---|---|
use-resource-query.template.tsx | TanStack Query | Standard query hook with key factory, retry, abort, optional suspense |
use-resource-query-no-deps.template.tsx | None (pure React + AbortController) | Same patterns as above, library-free: hand-rolled cache, dedup, retry with jitter, staleTime/gcTime, concurrency limit |
carousel-data-loader.template.tsx | TanStack Query + react-error-boundary | Single carousel (summary + viewport-triggered detail) and multi-carousel feed with per-carousel failure isolation |
infinite-feed.template.tsx | TanStack Query + TanStack Virtual | Cursor-paginated infinite feed with virtualization and bounded working set |
prefetch-link.template.tsx | None | Hover/intent prefetch link wrapper |
request-collapser.template.ts | None | In-flight deduplication + concurrency limit utility |
Library-free path: if you can't add TanStack Query / SWR / DataLoader to your bundle (size constraints, host-app conflicts, dependency bans), start with use-resource-query-no-deps.template.tsx — it implements the core cache/dedup/retry/abort patterns in ~250 lines using only React and the web platform. The other templates that depend on TanStack can be adapted on top of it; only the request-collapser and prefetch-link templates are zero-dep out of the box.
| File | Description |
|---|---|
| references/_sections.md | Category definitions, ordering, impact rationale |
| assets/templates/_template.md | Template for authoring new rules |
| metadata.json | Version, references, abstract |
react-optimise — General React render performance (this skill is data-fetching-specific)nextjs-bundle-optimizer — Bundle/payload optimization for Next.jsinngest-nextjs-patterns — Server-side workflow patterns (complements server-fetch guidance)© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 58 other files (references, assets) in skills/.experimental/react-fetch-cache-patterns of pproenca/dot-skills.
Open the folder on GitHubat commit cf93c57
React Fetch Cache Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| React Fetch Cache Patterns this skillpproenca/dot-skills | 214 | — | ~3k | Automated safety check: Pass | MIT | |
| No Use Effectmattiacerutti/supernova | 187 | 2 repos | ~1.7k | Automated safety check: Pass | MIT | |
| React Best Practicesshapeshift/web | 206 | 1 repos | ~2k | Automated safety check: Pass | MIT | |
| Migrate Componentasyncapi/generator | 1.1k | — | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Data Client Reactreactive/data-client | 2k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Project Form PatternsAkaraChen/aghub | 272 | — | ~1.1k | Automated safety check: Pass | MIT |
mattiacerutti/supernova
Enforce the no-useEffect rule when writing or reviewing React code.
shapeshift/web
Comprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering.
asyncapi/generator
Promote a duplicated React/JSX template-local component into the shared @asyncapi/generator-components package.
reactive/data-client
Use @data-client/react hooks for data fetching, mutations, and rendering - useSuspense, useFetch, useQuery, useCache, useLive, useDLE, useSubscription, useController, DataProvider, AsyncBoundary…
AkaraChen/aghub
Form implementation guidance for the aghub desktop app. An agent skill from AkaraChen/aghub.
affaan-m/ECC
React and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills).
pproenca/dot-skills
Audio forensics and voice recovery guidelines for CSI-level audio analysis.
pproenca/dot-skills
Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.
pproenca/dot-skills
Create well-structured RFCs and technical proposals for software projects.
pproenca/dot-skills
Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.
pproenca/dot-skills
Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…
pproenca/dot-skills
Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…
Works with
Categories
React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards. React Fetch Cache Patterns is an agent skill from pproenca/dot-skills. React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards.
React Fetch Cache Patterns fits situations like: refactoring React components that fetch data — even if the user doesnt explicitly mention performance; tasks that involve Caching; tasks that involve React components.
Run `npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a claude-code`. Or copy the skill folder (skills/.experimental/react-fetch-cache-patterns in pproenca/dot-skills) into .claude/skills/react-fetch-cache-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a codex`. Or copy the skill folder (skills/.experimental/react-fetch-cache-patterns in pproenca/dot-skills) into .agents/skills/react-fetch-cache-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-fetch-cache-patterns, .gemini/skills/react-fetch-cache-patterns, .github/skills/react-fetch-cache-patterns and .opencode/skills/react-fetch-cache-patterns in your project.
Going by SKILL.md and its folder, React Fetch Cache Patterns needs TypeScript for the scripts in its folder. Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
React Fetch Cache Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 41k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with React Fetch Cache Patterns: No Use Effect (mattiacerutti/supernova, 187 stars), React Best Practices (shapeshift/web, 206 stars), Migrate Component (asyncapi/generator, 1.1k stars) and Data Client React (reactive/data-client, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.
Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.