Compare NPM Packages

1 Year
react-query@tanstack/react-query
NPM Package Downloads Trend
Github Stars Ranking
Stat Detail
Package
Weekly Downloads
Github Stars
Open Issues
Last Commit
License
@tanstack/react-query3,002,83439,54550a day agoMIT License
react-query1,406,48239,54550a day agoMIT License
Feature Comparison
Featuresreact-query@tanstack/react-query
Data Fetching and Caching
React Query is a popular library for data fetching and state management in React, offering features like caching, pagination, and more.
@tanstack/react-query is a library for data fetching, caching, and synchronization, providing a powerful solution for managing data in React applications.
Caching Strategies
React Query provides caching strategies such as stale-while-revalidate, cache-and-network, and others to optimize data fetching and updates.
@tanstack/react-query offers various caching strategies, including automatic background refetching, invalidation, and more.
Pagination Support
React Query provides pagination features, allowing developers to paginate through data and manage pagination state.
@tanstack/react-query includes built-in support for pagination, making it easy to fetch and manage paginated data.
Synchronization and Real-Time Updates
React Query provides real-time updates through automatic background refetching and integration with WebSockets and GraphQL subscriptions.
@tanstack/react-query offers synchronization and real-time updates through features like background polling and WebSocket integration.
Server-Side Rendering (SSR)
React Query is compatible with Server-Side Rendering (SSR) and offers guidance on integrating it into server-rendered applications.
@tanstack/react-query supports Server-Side Rendering (SSR) and offers tools and patterns for server-rendered React applications.
Community
React Query has a large and active community with a variety of plugins and resources available.
@tanstack/react-query has a growing community and offers additional tools like React Query Devtools and plugins.
NPM Package Introudction

React Query Header

Note

You're looking at the v3 version of react-query. Starting with v4, react-query is now available as @tanstack/react-query

Find the docs at https://tanstack.com/query/latest