Open History to see the last commit
1<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=be2d8a11-9712-4c1d-9963-580b2d4fb133" />
2
3<div align="center">
4 <img src="./media/header_query.png" alt="TanStack Query" />
5</div>
6
7<br />
8
9<div align="center">
10<a href="https://www.npmjs.com/package/@tanstack/query-core" target="_parent">
11 <img alt="" src="https://img.shields.io/npm/dm/@tanstack/query-core.svg" alt="npm downloads" />
12</a>
13 <a href="https://github.com/TanStack/query/stargazers" target="_parent">
14 <img alt="" src="https://img.shields.io/github/stars/TanStack/query.svg?style=social&label=Star" alt="GitHub stars" />
15</a>
16<a href="https://bundlejs.com/?q=%40tanstack%2Freact-query&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="_parent">
17 <img alt="" src="https://deno.bundlejs.com/?q=@tanstack/react-query&config={%22esbuild%22:{%22external%22:[%22react%22,%22react-dom%22]}}&badge=detailed" alt="Bundle size" />
18</a>
19</div>
20
21<div align="center">
22<a href="#badge">
23 <img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="semantic-release">
24 </a>
25<a href="https://bestofjs.org/projects/tanstack-query"><img src="https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%2Fquery%26since=daily" alt="Best of JS" /></a>
26 <a href="https://twitter.com/tan_stack"><img src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" alt="Follow @TanStack"/></a>
27</div>
28
29<div align="center">
30
31### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
32
33</div>
34
35# TanStack Query
36
37An async state management library built to simplify fetching, caching, synchronizing, and updating server state.
38
39- Protocol‑agnostic fetching (REST, GraphQL, promises, etc.)
40- Caching, refetching, pagination & infinite scroll
41- Mutations, dependent queries & background updates
42- Prefetching, cancellation & React Suspense support
43
44### <a href="https://tanstack.com/query">Read the docs →</b></a>
45
46## Get Involved
47
48- We welcome issues and pull requests!
49- Participate in [GitHub discussions](https://github.com/TanStack/query/discussions)
50- Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)
51- See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions
52
53## Partners
54
55<table align="center">
56 <tr>
57 <td>
58 <a href="https://www.coderabbit.ai/?via=tanstack&dub_id=aCcEEdAOqqutX6OS" >
59 <picture>
60 <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/coderabbit-dark-D643Zkrv.svg" />
61 <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" />
62 <img src="https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg" height="40" alt="CodeRabbit" />
63 </picture>
64 </a>
65 </td>
66 <td>
67 <a href="https://www.cloudflare.com?utm_source=tanstack">
68 <picture>
69 <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" />
70 <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg" />
71 <img src="https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg" height="60" alt="Cloudflare" />
72 </picture>
73 </a>
74 </td>
75 </tr>
76</table>
77
78<div align="center">
79<img src="./media/partner_logo.svg" alt="Query & you?" height="65">
80<p>
81We're looking for TanStack Query Partners to join our mission! Partner with us to push the boundaries of TanStack Query and build amazing things together.
82</p>
83<a href="mailto:partners@tanstack.com?subject=TanStack Query Partnership"><b>LET'S CHAT</b></a>
84</div>
85
86</div>
87
88## Explore the TanStack Ecosystem
89
90- <a href="https://github.com/tanstack/config"><b>TanStack Config</b></a> – Tooling for JS/TS packages
91- <a href="https://github.com/tanstack/db"><b>TanStack DB</b></a> – Reactive sync client store
92- <a href="https://github.com/tanstack/devtools"><b>TanStack DevTools</b></a> – Unified devtools panel
93- <a href="https://github.com/tanstack/form"><b>TanStack Form</b></a> – Type‑safe form state
94- <a href="https://github.com/tanstack/pacer"><b>TanStack Pacer</b></a> – Debouncing, throttling, batching <br/>
95- <a href="https://github.com/tanstack/query"><b>TanStack Query</b></a> – Async state & caching
96- <a href="https://github.com/tanstack/ranger"><b>TanStack Ranger</b></a> – Range & slider primitives
97- <a href="https://github.com/tanstack/router"><b>TanStack Router</b></a> – Type‑safe routing, caching & URL state
98- <a href="https://github.com/tanstack/router"><b>TanStack Start</b></a> – Full‑stack SSR & streaming
99- <a href="https://github.com/tanstack/store"><b>TanStack Store</b></a> – Reactive data store
100- <a href="https://github.com/tanstack/table"><b>TanStack Table</b></a> – Headless datagrids
101- <a href="https://github.com/tanstack/virtual"><b>TanStack Virtual</b></a> – Virtualized rendering
102
103… and more at <a href="https://tanstack.com"><b>TanStack.com »</b></a>
104
105<!-- Use the force, Luke -->