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
- cache on useSWRConfig is delayed
- Type-narrowing doesn't work
- `revalidateOnMount` With Fallback triggers `isLoading` instead of `isValidating`
- When using useSWRInfinite with {revalidateOnMount: true, revalidateFirstPage: false}, if there is a useLayoutEffect, the component will not make a new request when it is mounted.
- onSuccess not called after upgrading from Expo 51 to 52
- FetcherResponse not exported
- refreshWhenHidden not working properly
- useSWRInfinite could not load new page correctly after `clear` and `refresh`
- useSWR not back to fallback data after switching key to fallback key when keepPreviousData is true
- Making changes to data prop incorrectly updates the cache
- Docs
- TypeScript not yet supported