Skip to content

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-052026-08-07 (UTC)

Partial coverage11,179 / 11,816 hourly files (95%) · 2 absent upstream · 634 failed, retryable2025-04-052026-08-10 (UTC)— sampled evenly across the window, so rankings and trends hold; absolute counts scale up.
Events
1.1K
Pushes
64
Pull requests
38
Issues
33
Stars
720
Forks
46

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

Recent activity

Latest issues, pull requests and releases

  • Issue comment#4268tsushanth2026-08-07 17:21
    fix(subscription): clear refcount and disposer Maps on last-subscriber teardown
  • Pull request#4264chatman-media2026-06-07 08:12
  • Issue comment#2771JoshJRennie2026-05-18 14:32
    Bug in `createCacheHelper`
  • Pull request#4252tomohiro862026-05-10 16:50
  • Issue comment#4253li-jia-nan2026-05-09 03:16
    fix(infinite): keep parallel getKey previousPageData null on setSize
  • Issue comment#4252promer942026-05-09 01:05
    fix: guard against double-unsubscribe removing wrong subscriber in cache.ts
  • Issue comment#4244codesandbox-ci[bot]2026-04-13 05:27
    fix: 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:37
    fix: guard against undefined global state in createCacheHelper
  • Issue comment#4231codesandbox-ci[bot]2026-03-08 17:40
    fix: prevent infinite loop when onSuccess is explicitly undefined
  • Issue comment#4231chatgpt-codex-connector[bot]2026-03-08 17:39
    fix: prevent infinite loop when onSuccess is explicitly undefined
  • Issue comment#4119dcondrey2026-03-08 03:52
    Skip revalidation for RSC fallback data by default
  • Issue comment#4120dcondrey2026-03-05 02:45
    Improve accuracy in determining visibility state
  • Issue comment#4220molebox2026-03-04 14:27
    Skill
  • Issue comment#4227codesandbox-ci[bot]2026-03-02 01:05
    Fix typo: th key to the key
  • Issue comment#4224codesandbox-ci[bot]2026-02-23 03:51
    fix: guard against undefined global state in createCacheHelper
  • Issue comment#4211pauksztello2026-02-21 14:40
    Prefetching data with dynamic keys in Nextjs 16 `cacheComponents: true`
  • Issue comment#4223codesandbox-ci[bot]2026-02-21 04:37
    fix #4221
  • Issue#4221promer942026-02-18 08:49
    isLoading 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:48
    isLoading stuck on true when updating cache with revalidate false
  • Issue#4221promer942026-02-18 08:48
    isLoading stuck on true when updating cache with revalidate false
  • Issue#4221daniellskelton2026-02-17 14:19
    isLoading 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.