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
- add useCallback in useSWRInfinite example when need to use setSize
- Support clarifying SWRResponse type to do type narrowing SWRResponse["data"] by flags(isSuccess) or union type or any other ways please
- `data` for nullish keys with `suspense: true` should have the `undefined` type
- useSwr does not revalidate preloaded data on mount
- `SWRGlobalState` entry is deleted on remount `SWRConfig` with same cache provider
- Function errors in typescript: has no properties in common with type 'Partial<PublicConfiguration<any, any, BareFetcher<any>>>'
- Uncaught (in promise) by calling useSWRMutation trigger function
- Regression in 2.2.4: Type issue with useSWR: fetcher mistaken for config
- useSWR not re-rendering component with API response
- Always call onSuccess even with deduping?
- Docs
- TypeScript not yet supported