React Swr Hooks

Enforces hook development conventions for React projects using SWR (stale-while-revalidate): file structure, fetcher patterns, key factories, typing, and anti-pattern prevention. Works with React Native, Expo, Vite + React, CRA, Remix (client-side), and any React 18/19 app. Use when creating, modifying, or reviewing custom React hooks with SWR, or when user mentions "swr", "useSWR", "stale while revalidate", "swr hook", "swr mutation", "useSWRMutation", "swr infinite", "swr middleware". Do NOT use for TanStack Query projects — use react-tanstack-hooks instead. Do NOT use for general React component development or non-hook utilities. Do NOT use for client state management (Zustand, Redux, Recoil, Jotai).

amunozdev Updated

File contents

amunozdev/react-swr-hooks commit 03d27979f9

Frequently asked questions

npx get-skill add amunozdev/react-swr-hooks