TanStackQuery

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 chek out our official 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

Sponsors

ui.dev

Nozzle

devdave

Philippe Serhal

Pennylane

Adam Tzagournis, CPA

Daniel Beck

Spencer McKenney

xan187

Anton Kalashnikau

Marcello

Joey Yu

torutek

Michael Mercer

Toyokumo

DefinedNet

Yuzuki Aida

Dom Sip

Christopher Aitken

Henning Hall

0xSmithy

Joseph Moroney

Joe Timmons

Mention Me Ltd

André Tashiro

Meotimdihia

Emily Kauffman

trong

C4 Solutions LLC

Triple Point Liquidity

Marin Atanasov

Github

Retool

GitHub

Josh Gum

Tony H. Meyer

Gene Henson

bdresser

Andrei Bursuc

Alex Nault

Dene Boulton

Georgy Marchuk

Will Schoenberger

Adam L Barrett

scottrupprecht

Andrew James

stackdock

Nick

Brian Cooper

Eiliya

Andy Kant

Henrique Fonseca

Juanfran

Billy Hawkes

Reece McDonald

Diu

LeCarbonator

Marc Veens

Quinn Zipse

Aidan Sunbury

Wojciech Lechowicz

Chris Cheney

Nick Taylor

David Chalifoux

Milos Dimitrijevic

Syntax

Andris Sīlis

Tom Watkins

Roboflow

Project Print Lab

matvey

David Cramer

Andy Kenward

Ted Barrett

Sean Griffin

David Birks

uitspitss

Matt Wilson

UXWizz

Victor Aremu

Romain Trotard

Tony Stipanic

Khaled Mohamed

Josh Crang

Joseph Chow

Adam Beck

Nicholas Griffin

Justin Linn

Andris Klaipiņš

Jeff Wilcox

Andrew Cherniavskii

Benjamin Charity

Adam Slaker

David Crespo

Alex Machin

Emily Marigold Klassen

Lawrence Gosset

Omar Diab

Ido Shamun

Rene Dellefont

Greg Lin

Matt Chinander

Juliano Farias

Alex Bennett

Brent Clark

Standard Resume Sponsors

React Bricks

Brian Mitchell

RewriterPro

kamran khan

TextToHuman

Ben Houston

Abdulla Abdurazzoqov

Yogesh

Ulrich Stark

Viorel Mocanu

Crema

superluxuryreps.com

UnAiMyText

Ryo Sano

Catalin Pit

Daniel Osmond

Zac Rosenbauer

Reginaldo Junior

Franck Blettner

Ascent Factory

Cased

Maximillian Rampulla

Liminity AB

Route4Me Route Planner

Hasham Ali

Leo Vigna

Sam Meech-Ward

BestKru

Nextbase

Proxidize

Celebian

deliver.media

Basedash

Daniel Meyer

Miniter Group

JDLT

Jennifer Kirchner

Jonas Daniels

Clair

Long Doan

Chris Dhanaraj

WorkflowGen

Kamal

Andy Slezak

Joshua Turner

daveycodez

Legalesign eSignature

imagino

Valerii Petryniak

Shipfox

Clipboard

JetBrains

Webflow OSS

Nadav Lebovitch

Sedrino Labs, Inc.

wasp-lang

Datadog, Inc.

egghead.io

Invertase

Localazy

Xpansiv

Modelence

SVAR React UI Components

Unkey

Ashby

COMPASS Inc.

Bun

sanity-io

Handsontable

MUI

AG Grid

An ad on an open source project? What is this, 1999?
Please... TanStack is 100% privately owned, with no paid products, venture capital, or acquisition plans. We're a small team dedicated to creating software used by millions daily. What did you expect?
Check out our ethos to learn more about how we plan on sticking around (and staying relevant) for the long-haul.

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...
scarf analytics