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: Add metadata fields for swr (Issue #1742)
- feat: rsc fetches and prefill swr cache
- fix: point _internal react-server export at existing file
- SWR does not re-render after mutate when data type is a Map
- fix(subscription): clear refcount and disposer Maps on last-subscriber teardown
- 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