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 supported1 Subscribers
Add a CodeTriage badge to swr
Help out
- Issues
- [RFC] feat: Use a `status` enum to label the current stage of a SWR hook
- error thrown in mutate bubbles up to error of useSWR hook
- Make it possible to infer the fetcher's key
- `optimisticData` function does not use fallback as `currentData`
- Version 1 local storage provider does not work with version 2
- `fallback` prop does not work for useSWRInfinite
- Multiple consumers of the same cache key all paused if only one `isPaused()` evaluates to true
- Cache mutation for extended swr features like swr infinite / subscription
- Mutate's async function data is set to `undefined` with `getServerSideProps` and no revalidation
- ReactStrictMode with Axios abortController makes my request canceled
- Docs
- TypeScript not yet supported