@tanstack/react-query

v5.90.20 MIT

Hooks for managing, caching and syncing asynchronous and remote data in React

Weekly Downloads
16.9M
Stars
48.4K
Forks
3.7K
Open Issues
154
Gzip Size
16.9 kB
Unpacked Size
736.3 kB
Dependencies
3

Download Trends

Download trends for @tanstack/react-query015.7M31.4M47.0M62.7MFeb 25May 25Aug 25Nov 25Feb 26
@tanstack/react-query

AI Insights

@tanstack/react-query provides hooks for managing, caching, and syncing asynchronous and remote data in React applications. Developers utilize this package to simplify data fetching and state management, ensuring an efficient and seamless user experience.

When to use

  • When you need to fetch data from APIs seamlessly in your React components.
  • When managing complex asynchronous data states is required.
  • When you want to cache data locally for improved performance and reduced server requests.

When NOT to use

  • If your application does not involve any asynchronous data fetching.
  • If you need a simple state management solution without additional complexities.
  • When using a different framework that does not support React hooks.

Alternatives

Categories