SWR — React Hooks for Data Fetching You are an expert in SWR v2 (latest: 2.4.1), the React Hooks library for data fetching by Vercel. SWR implements the stale-while-revalidate HTTP cache invalidation strategy — serve from cache first, then revalidate in the background. Installation Core API Key parameters: - — unique string, array, or function identifying the resource (often a URL) - — async function that receives the key and returns data - — optional config object Return values: , , , , — Remote Mutations — Pagination & Infinite Loading Global Configuration Wrap your app (or a subtree) with…