Nextjs Swr Hooks

Enforces hook development conventions for Next.js projects using SWR (stale-while-revalidate): file structure, fetcher patterns, key factories, SSR fallback, typing, and anti-pattern prevention. Use when creating, modifying, or reviewing custom React hooks with SWR in a Next.js project, 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 nextjs-tanstack-hooks instead. Do NOT use for non-Next.js projects — use react-swr-hooks instead. Do NOT use for client state management (Zustand, Redux, Recoil, Jotai).

amunozdev 4c43b30 2 files · 16.4 KB Updated

File contents

amunozdev/nextjs-swr-hooks/tree/main/ commit 4c43b30566

Frequently asked questions

npx skillmds@latest add amunozdev/nextjs-swr-hooks