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: useSWRMutation isMutating never shows true when called inside <form action>
- fix: release the correct listener set when initCache is re-entered under StrictMode
- Return keyed fallback under keepPreviousData when current key has no cached data
- fix: clear matching preloads on wildcard mutate
- fix(types): allow null as fetcher in PublicConfiguration
- fix(mutate): scope optimisticData and populateCache per matched key
- fix(hash): coerce an invalid Date to a stable string key
- Avoid creating new promises for deduped revalidation
- fix: use full `dequal` so the default compare handles `Map` and `Set`
- fix(mutate): roll back optimistic data when the mutator throws synchronously
- Docs
- TypeScript not yet supported