swr
https://github.com/vercel/swr
TypeScript
React Hooks for Data Fetching
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
TypeScript not yet supported2 Subscribers
Add a CodeTriage badge to swr
Help out
- Issues
- Mount effect writes `_k` to the cache on every mount, waking all subscribers of the key
- fix: discard rejections from superseded requests
- A rejection from a superseded request overwrites the newer result (error path lacks the FETCH ownership check)
- useSWRInfinite: a superseded revalidation still writes its pages into the page cache
- fix(infinite): reuse in-flight page request when setSize is called repeatedly
- fix: notify all subscribers on focus and reconnect
- fix: discard rejected requests invalidated by unload
- test(hash): cover the stableHash key-serialisation contract
- fix: skip scheduled error retry once the error is resolved
- fix: skip revalidation after mutation errors
- Docs
- TypeScript not yet supported