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
- fix(mutate): scope optimisticData and populateCache per matched key
- Consume rendered data through use() with cached instrumented thenables
- fix(hash): coerce an invalid Date to a stable string key
- Make suspense use branches explicit
- Avoid creating new promises for deduped revalidation
- fix: use full `dequal` so the default compare handles `Map` and `Set`
- fix(mutate): roll back optimistic data when the mutator throws synchronously
- fix: notify all key listeners on revalidation events
- fix: call onSuccess for all hook consumers sharing a deduplicated request
- fix(subscription): delete bookkeeping Map entries on last unmount
- Docs
- TypeScript not yet supported