react-queryv3.39.3
Hooks for managing, caching and syncing asynchronous and remote data in React
| Metric | react-query | swr |
|---|---|---|
| Weekly downloads | 2.1M | 27.9Mleads |
| Monthly downloads | 8.9M | 117.7Mleads |
| Yearly downloads | 85.5M | 675.9Mleads |
| GitHub stars | 51Kleads | 32K |
| Forks | 4Kleads | 1K |
| Open issues | 134leads | 268 |
| Bundle (gzip) | 13.3kb | 5.6kbleads |
| License | MIT | MIT |
| Latest release | Jan 25, 2023 | Aug 12, 2026 |
Overall winnerswr
react-query 3swr 5
swr has a slight edge over react-query, but both are solid choices. Consider your priorities before deciding.
swr leads with 117.7M monthly downloads, 13.3x more popular
react-query has a larger community with 51K GitHub stars (1.6x more stars)
swr is lighter at 5.6kb gzipped, 2.4x lighter
react-query was updated more recently (4 days ago vs 1 month ago)