Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
Transport/protocol/backend agnostic data fetching
Supports REST, GraphQL, promises, and more.
Auto Caching + Refetching
Ensures data is always fresh with features like stale-while-revalidate and window refocus.
Parallel + Dependent Queries
Allows multiple queries to be executed simultaneously or dependently.
React Suspense + Fetch-As-You-Render
Enhances performance by fetching and rendering data seamlessly.
TanStack/query is a powerful library designed for managing asynchronous state and server-state utilities in web applications. It provides a comprehensive set of tools for data fetching, caching, and updating across multiple frontend frameworks including React, Solid, Svelte, and Vue. By leveraging hooks, it simplifies the complexities of handling server data, making it easier for developers to build responsive and efficient applications.
The library is built with TypeScript and JavaScript, ensuring type safety and developer-friendly experiences. It is open-source and licensed under the MIT license, with a strong community and extensive documentation available for users.
Building data-heavy applications that require real-time updates.
Managing complex state for applications that rely on server data.
Creating responsive UIs that need to fetch and display data efficiently.
It is a library for asynchronous state management and data fetching for web applications.
It supports React, Solid, Svelte, and Vue.
Yes, it is open-source and available under the MIT license.