TanStack Query v5

Powerful asynchronous state management for TS/JS, React, Solid, Vue, Svelte and Angular

Toss out that granular state management, manual refetching and endless bowls of async-spaghetti code. TanStack Query gives you declarative, always-up-to-date auto-managed queries and mutations that directly improve both your developer and user experiences.

Read the Docs

(or check out query.gg – the official React Query course)

Declarative & Automatic

Writing your data fetching logic by hand is over. Tell TanStack Query where to get your data and how fresh you need it to be and the rest is automatic. It handles caching, background updates and stale data out of the box with zero-configuration.

Simple & Familiar

If you know how to work with promises or async/await, then you already know how to use TanStack Query. There's no global state to manage, reducers, normalization systems or heavy configurations to understand. Simply pass a function that resolves your data (or throws an error) and the rest is history.

Extensible

TanStack Query is configurable down to each observer instance of a query with knobs and options to fit every use-case. It comes wired up with dedicated devtools, infinite-loading APIs, and first class mutation tools that make updating your data a breeze. Don't worry though, everything is pre-configured for success!

No dependencies. All the Features.

With zero dependencies, TanStack Query is extremely lean given the dense feature set it provides. From weekend hobbies all the way to enterprise e-commerce systems (Yes, I'm lookin' at you Walmart! 😉), TanStack Query is the battle-hardened tool to help you succeed at the speed of your creativity.

Backend agnostic Dedicated Devtools Auto Caching Auto Refetching Window Focus Refetching Polling/Realtime Queries Parallel Queries Dependent Queries Mutations API Automatic Garbage Collection Paginated/Cursor Queries Load-More/Infinite Scroll Queries Scroll Recovery Request Cancellation Suspense Ready! Render-as-you-fetch Prefetching Variable-length Parallel Queries Offline Support SSR Support Data Selectors
Trusted in Production by
GoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUberGoogleWalmartFacebookPayPalAmazonAmerican ExpressMicrosoftTargetEbayAutodeskCarFAXDocusignHPMLBVolvoOcadoUPC.chEFI.comReactBricksNozzle.ioUber

Partners

Query You?
We're looking for a TanStack Query OSS Partner to go above and beyond the call of sponsorship. Are you as invested in TanStack Query as we are? Let's push the boundaries of Query together!
Let's chat

Sponsors

ui.dev

Nozzle

calloc134

Piotr Zacharski

Zorak

merthanmerter

Spencer McKenney

xan187

Fernando Villalba

Anton Kalashnikau

Arian

翠 / green

Marcello

Joey Yu

Ethan Glover

torutek

Michael Mercer

Norbert Piwka

Toyokumo

DefinedNet

Can Kahraman

Yuzuki Aida

bjornhauge

Dom Sip

Christopher Aitken

Henning Hall

Josh Smith (Smithy)

Gerardo Fernández Moreno

Joseph Moroney

Joe Timmons

Mention Me Ltd

André Tashiro

Meotimdihia

Daniel Burger

Emily Kauffman

Trong

C4 Solutions LLC

Triple Point Liquidity

Marin Atanasov

Raphaël Saunier

Github

Retool

GitHub

Gary Paluk

Josh Gum

Tony H Meyer

Gene Henson

bdresser

Andrei Bursuc

Alex Nault

Dene Boulton

Matt Chinander

Georgy Marchuk

Will Schoenberger

Adam L Barrett

Alex Dreymann

David Chalifoux

Andrey Dyatlov

Milos Dimitrijevic

Syntax

Acid Coder

Aljóna Dzhukich

Andris Sīlis

Tom Watkins

Lucas Garcez

Roboflow

Project Print Lab

Matvey

David Cramer

Andy Kenward

Ted Barrett

Antonio

Sean Griffin

David Birks

Justin Myers

uitspitss

Matt Wilson

UXWizz

Victor Aremu

ProEvilz

Joon

Timo

Romain Trotard

Tony Stipanic

Khaled Mohamed

Josh Crang

Tobias Goulden Schultz

Joseph Chow

Adam Beck

Nicholas Griffin

Justin Linn

Andris Klaipiņš

Jeff Wilcox

Andrew Cherniavskii

Benjamin Charity

Johnathan Ludwig

Adam Slaker

David Crespo

Alex Machin

Emily Marigold Klassen

Lawrence Gosset

Omar Diab

Ido Shamun

Rene Dellefont

Greg Lin

Juliano Farias

Vianney Carel

Alex Bennett

Brent Clark

Standard Resume Sponsors

React Bricks

Brian Mitchell

Eric Casthart

Gaëtan Bloch

Thorben Fohlmeister

Devhuset

Andrew D. Murray

Liminity AB

Volkov Labs

Route4Me Route Planner

Hasham Ali

Leo Vigna

Sam Meech-Ward

BestKru

Nextbase

Proxidize

Celebian

CellaJS

deliver.media

Basedash

Daniel Meyer

Miniter Group

JDLT

Jennifer Kirchner

Jonas Daniels

daily.dev

Clair

Long Doan

Chris Dhanaraj

WorkflowGen

Kamal

Andy Slezak

Joshua Turner

Webflow OSS

Nadav Lebovitch

TRACTIAN

Sedrino Labs, Inc.

wasp-lang

Datadog, Inc.

Jesse Attas

egghead.io

Invertase

Speakeasy

Ashby

COMPASS Inc.

Neo4j

Handsontable

MUI

AG Grid

This ad helps us be happy about our invested time and not burn out and rage-quit OSS. Yay money! 😉

Less code, fewer edge cases.

Instead of writing reducers, caching logic, timers, retry logic, complex async/await scripting (I could keep going...), you literally write a tiny fraction of the code you normally would. You will be surprised at how little code you're writing or how much code you're deleting when you use TanStack Query. Try it out with one of the examples below!

Wow, you've come a long way!
Only one thing left to do...