React Hooks for Data Fetching SWR is a React Hooks library for data fetching. The name “SWR” is derived from stale-while-revalidate, a cache invalidation strategy popularized by HTTP RFC 5861. SWR first returns the data from cache (stale), then sends the request (revalidate), and finally comes with the up-to-date data again.
active 2025-04-05 → 2026-08-07 (UTC)
Activity over time
Daily event counts in the loaded window
Line chart, 490 days from 2025-04-05 to 2026-08-07. Pushes: 64 total, peak 11 in a day. Pull requests: 38 total, peak 3 in a day. Issues: 33 total, peak 4 in a day. Comments: 88 total, peak 6 in a day. Stars: 720 total, peak 9 in a day.
- Pushes
- Pull requests
- Issues
- Comments
- Stars
Stars, PRs, issues and forks are under-captured in the later part of this window. GH Archive progressively stopped capturing non-push events during 2026 — −95% or worse by the end of the window. Every series here except Pushes fades for that reason, so a decline above reflects the archive, not this repository. Pushes stay reliable throughout, so read them, and the contributor counts derived from them, as the real signal. Data health has the measurements.
Top contributors
Pushes, PRs, issues, reviews and comments — stars and forks excluded, so this is contribution rather than popularity
| Contributor | Contributions | Pushes | PRs | Comments |
|---|---|---|---|---|
| promer94 | 41 | 12 | 11 | 3 |
| huozhi | 31 | 23 | 5 | 0 |
| Copilot | 21 | 1 | 2 | 6 |
| shuding | 20 | 8 | 4 | 1 |
| codesandbox-ci[bot] | 17 | 0 | 0 | 17 |
| haydenbleasel | 14 | 14 | 0 | 0 |
| vercel[bot] | 9 | 0 | 0 | 5 |
| socket-security[bot] | 5 | 0 | 0 | 5 |
| dcondrey | 4 | 0 | 0 | 4 |
| gdborton | 3 | 1 | 1 | 1 |
| FAL-coffee | 3 | 0 | 1 | 1 |
| SafelandingF | 2 | 0 | 0 | 1 |
| PierreCrb | 2 | 0 | 2 | 0 |
| li-jia-nan | 2 | 0 | 0 | 2 |
| gabriel-peter | 2 | 0 | 0 | 2 |
| CODEAbhinav-art | 2 | 0 | 1 | 1 |
| kuriel-dev | 2 | 0 | 0 | 2 |
| joseph0926 | 2 | 0 | 1 | 1 |
| pauksztello | 2 | 0 | 0 | 1 |
| devjiwonchoi | 2 | 2 | 0 | 0 |
Recent activity
Latest issues, pull requests and releases
- Issue comment#4268tsushanth2026-08-07 17:21fix(subscription): clear refcount and disposer Maps on last-subscriber teardown
- Pull request#4264chatman-media2026-06-07 08:12
- Issue comment#2771JoshJRennie2026-05-18 14:32Bug in `createCacheHelper`
- Pull request#4252tomohiro862026-05-10 16:50
- Issue comment#4253li-jia-nan2026-05-09 03:16fix(infinite): keep parallel getKey previousPageData null on setSize
- Issue comment#4252promer942026-05-09 01:05fix: guard against double-unsubscribe removing wrong subscriber in cache.ts
- Issue comment#4244codesandbox-ci[bot]2026-04-13 05:27fix: support async subscribe in useSWRSubscription
- Pull request#4243lukesandberg2026-04-12 01:09
- Pull request#4238Gdhanush-132026-04-05 08:29
- Issue comment#4224veeceey2026-03-12 04:37fix: guard against undefined global state in createCacheHelper
- Issue comment#4231codesandbox-ci[bot]2026-03-08 17:40fix: prevent infinite loop when onSuccess is explicitly undefined
- Issue comment#4231chatgpt-codex-connector[bot]2026-03-08 17:39fix: prevent infinite loop when onSuccess is explicitly undefined
- Issue comment#4119dcondrey2026-03-08 03:52Skip revalidation for RSC fallback data by default
- Issue comment#4120dcondrey2026-03-05 02:45Improve accuracy in determining visibility state
- Issue comment#4220molebox2026-03-04 14:27Skill
- Issue comment#4227codesandbox-ci[bot]2026-03-02 01:05Fix typo: th key to the key
- Issue comment#4224codesandbox-ci[bot]2026-02-23 03:51fix: guard against undefined global state in createCacheHelper
- Issue comment#4211pauksztello2026-02-21 14:40Prefetching data with dynamic keys in Nextjs 16 `cacheComponents: true`
- Issue comment#4223codesandbox-ci[bot]2026-02-21 04:37fix #4221
- Issue#4221promer942026-02-18 08:49isLoading stuck on true when updating cache with revalidate false
- Pull request#4222Copilot2026-02-18 08:48
- Pull request#4222Copilot2026-02-18 08:48
- Issue#4221promer942026-02-18 08:48isLoading stuck on true when updating cache with revalidate false
- Issue#4221promer942026-02-18 08:48isLoading stuck on true when updating cache with revalidate false
- Issue#4221daniellskelton2026-02-17 14:19isLoading stuck on true when updating cache with revalidate false
Totals cover only the window loaded into ClickHouse and count events, not GitHub's lifetime totals — 720 stars here means stars gained during the window, not the repo's star count.