Back to Query

README

packages/react-query/README.md

5.90.33.4 KB
Original Source

Hooks for fetching, caching and updating asynchronous data in React

<a href="https://twitter.com/intent/tweet?button_hashtag=TanStack" target="\_parent">

</a><a href="https://discord.com/invite/WrRKjPJ" target="\_parent">

</a><a href="https://github.com/TanStack/query/actions?query=workflow%3A%22react-query+tests%22">

</a><a href="https://www.npmjs.com/package/@tanstack/query-core" target="\_parent">

</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">

</a><a href="#badge">

</a><a href="https://github.com/TanStack/query/discussions">

</a><a href="https://bestofjs.org/projects/tanstack-query"></a><a href="https://github.com/TanStack/query/" target="\_parent">

</a><a href="https://twitter.com/tannerlinsley" target="\_parent">

</a> <a href="https://gitpod.io/from-referrer/">

</a>

Enjoy this library? Try the entire TanStack! TanStack Table, TanStack Router, TanStack Virtual, React Charts, React Ranger

Visit tanstack.com/query for docs, guides, API and more!

Quick Features

  • Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, whatever!)
  • Auto Caching + Refetching (stale-while-revalidate, Window Refocus, Polling/Realtime)
  • Parallel + Dependent Queries
  • Mutations + Reactive Query Refetching
  • Multi-layer Cache + Automatic Garbage Collection
  • Paginated + Cursor-based Queries
  • Load-More + Infinite Scroll Queries w/ Scroll Recovery
  • Request Cancellation
  • React Suspense + Fetch-As-You-Render Query Prefetching
  • Dedicated Devtools

Become a Sponsor!

<!-- Use the force, Luke -->