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
- Reuse deduped revalidation promises
- fix: use full `dequal` so the default compare handles `Map` and `Set`
- fix(mutate): roll back optimistic data when the mutator throws synchronously
- fix: call onSuccess for all hook consumers sharing a deduplicated request
- fix: keep mutation trigger callable with generics
- fix: read swr devtools on demand
- fix: ignore undefined values when merging configs
- fix(infinite): keep parallel getKey previousPageData null on setSize
- [useSWRMutation] `trigger` called within `<form action />` won't have proper `isMutating`
- fix(#4247): use `useTransition` to track mutation `isMutating`
- Docs
- TypeScript not yet supported