Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

README.md

74 lines4.3 KB

1<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=be2d8a11-9712-4c1d-9963-580b2d4fb133" />
2​
3![TanStack Query Header](https://github.com/TanStack/query/raw/main/media/repo-header.png)
4​
5Hooks for fetching, caching and updating asynchronous data in React, Solid, Svelte and Vue
6​
7<a href="https://twitter.com/intent/tweet?button_hashtag=TanStack" target="\_parent">
8 <img alt="#TanStack" src="https://img.shields.io/twitter/url?color=%2308a0e9&label=%23TanStack&style=social&url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Fbutton_hashtag%3DTanStack">
9</a><a href="https://discord.com/invite/WrRKjPJ" target="\_parent">
10 <img alt="" src="https://img.shields.io/badge/Discord-TanStack-%235865F2" />
11</a><a href="https://www.npmjs.com/package/@tanstack/query-core" target="\_parent">
12 <img alt="" src="https://img.shields.io/npm/dm/@tanstack/query-core.svg" />
13</a><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">
14 <img alt="" src="https://deno.bundlejs.com/?q=@tanstack/react-query&config={%22esbuild%22:{%22external%22:[%22react%22,%22react-dom%22]}}&badge=detailed" />
15</a><a href="#badge">
16 <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
17 </a><a href="https://github.com/TanStack/query/discussions">
18 <img alt="Join the discussion on Github" src="https://img.shields.io/badge/Github%20Discussions%20%26%20Support-Chat%20now!-blue" />
19</a><a href="https://bestofjs.org/projects/tanstack-query"><img alt="Best of JS" src="https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%2Fquery%26since=daily" /></a><a href="https://github.com/TanStack/query/" target="\_parent">
20 <img alt="" src="https://img.shields.io/github/stars/TanStack/query.svg?style=social&label=Star" />
21</a><a href="https://twitter.com/tannerlinsley" target="\_parent">
22 <img alt="" src="https://img.shields.io/twitter/follow/tannerlinsley.svg?style=social&label=Follow" />
23</a> <a href="https://gitpod.io/from-referrer/">
24 <img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"/>
25</a>
26​
27Enjoy this library? Try the entire [TanStack](https://tanstack.com)! [TanStack Table](https://github.com/TanStack/table), [TanStack Router](https://github.com/tanstack/router), [TanStack Virtual](https://github.com/tanstack/virtual), [React Charts](https://github.com/TanStack/react-charts), [React Ranger](https://github.com/TanStack/ranger)
28​
29## Visit [tanstack.com/query](https://tanstack.com/query) for docs, guides, API and more!
30​
31Still on **React Query v2**? No problem! Check out the v2 docs here: https://github.com/TanStack/query/tree/2.x/docs/src/pages/docs.<br />
32Still on **React Query v3**? No problem! Check out the v3 docs here: https://tanstack.com/query/v3/docs/.<br />
33Still on **React Query v4**? No problem! Check out the v4 docs here: https://tanstack.com/query/v4/docs/.
34​
35## Quick Features
36​
37- Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, whatever!)
38- Auto Caching + Refetching (stale-while-revalidate, Window Refocus, Polling/Realtime)
39- Parallel + Dependent Queries
40- Mutations + Reactive Query Refetching
41- Multi-layer Cache + Automatic Garbage Collection
42- Paginated + Cursor-based Queries
43- Load-More + Infinite Scroll Queries w/ Scroll Recovery
44- Request Cancellation
45- [React Suspense](https://react.dev/reference/react/Suspense) + Fetch-As-You-Render Query Prefetching
46- Dedicated Devtools
47​
48## Partners
49​
50<a href="https://www.speakeasy.com/product/react-query?utm_source=tanstack&utm_campaign=tanstack">
51 <picture>
52 <source
53 srcset="https://tanstack.com/assets/speakeasy-dark-BjP-Hd9M.svg"
54 media="(prefers-color-scheme: dark)"
55 />
56 <source
57 srcset="https://tanstack.com/assets/speakeasy-light-UpY7QmwQ.svg"
58 media="(prefers-color-scheme: light)"
59 />
60 <!-- fallback -->
61 <img
62 src="https://tanstack.com/assets/speakeasy-light-UpY7QmwQ.svg"
63 alt="Speakeasy Logo"
64 />
65 </picture>
66</a>
67​
68## Contributing
69​
70View the contributing guidelines [here](/CONTRIBUTING.md)
71​
72### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
73​
74<!-- Use the force, Luke -->