swr
React Hooks for Data Fetching
About this project
Introduction SWR is a React Hooks library for data fetching. The name “SWR” is derived from stale-while-revalidate, a cache invalidation strategy popularized by HTTP RFC 5861. SWR first returns the data from cache (stale), then sends the request (revalidate), and finally comes with the up-to-date data again. With just one hook, you can significantly simplify the data fetching logic in your project. And it also covered in all aspects of speed, correctness, and stability to help you build better experiences: — Fast, lightweight and reusable data fetching — Transport and protocol agnostic — Built-in cache and request deduplication — Real-time experience — Revalidation on focus —…
Technologies
Project health
GitHub
Reviews
Built by
Maintain vercel/swr? Claiming verifies admin access through your GitHub account and gives you control of this listing.