TanStack

TanStack Query Blog

See all blog posts
Reliable Query Prefetching with TanStack Router

Prefetching in route loaders is great, but comes at a cost. We have to keep loaders in-sync with components...

Dominik Dorfmeister · Aug 18, 2026
TanStack Router and Query

TanStack Router has a built-in cache, so why would we need TanStack Query? There are, of course, reasons ...

Dominik Dorfmeister · May 26, 2026
Solid 2.0 Beta Support in TanStack Router, Start, and Query

TanStack Router, Start, and Query now support the Solid 2.0 beta, so you can try Solid's next major release in real applications today.

Brenley Dueck and Birk Skyum · Apr 10, 2026
Creating Query Abstractions

Building reusable abstractions on top of libraries that rely on type inference can be deceptively difficult, which is why we need better ways to build those abstractions ...

Dominik Dorfmeister · Feb 23, 2026
React Query Selectors, Supercharged

How to get the most out of select, sprinkled with some TypeScript tips.

Dominik Dorfmeister · Aug 4, 2025
Concurrent Optimistic Updates in React Query

How to build optimistic UI that is resilient to race conditions, even when multiple mutations update the same entity concurrently.

Dominik Dorfmeister · Apr 28, 2025
React Query - The Bad Parts

In this talk, maintainer Dominik will explore the other side—the less favorable aspects of React Query and situations where it may not be the best fit. No library is perfect; every choice involves trade-offs. By the end of this talk, you'll have a better understanding of React Query's limitations and why it remains a compelling choice despite them.

Dominik Dorfmeister · Dec 28, 2024
React Query API Design - Lessons Learned

In this talk, React Query maintainer Dominik will walk us through some of the API design choices that were made in React Query to get to that DX. You'll hear stories about things that went well, but also about tradeoffs and mistakes that were made, and what lessons we can all learn from those.

Dominik Dorfmeister · Oct 25, 2024
How Infinite Queries work

A serious bug report about infinite queries led me to question it's architecture, but it all turned out fine in the end ...

Dominik Dorfmeister · Sep 14, 2024
Automatic Query Invalidation after Mutations

Even though there is nothing built into React Query, it doesn't need a lot of code to implement automatic query invalidation in user-land thanks to the global cache callbacks.

Dominik Dorfmeister · May 25, 2024
The Query Options API

v5 brought a new, powerful API, especially if you're using React Query with TypeScript...

Dominik Dorfmeister · Jan 17, 2024
Why You Want React Query

Let's take a look at why you'd want a library like React Query, even if you don't need all the extra features it provides...

Dominik Dorfmeister · Nov 7, 2023
Announcing TanStack Query v5

After 91 alpha releases, 35 betas, and 16 release candidates, TanStack Query v5.0.0 is finally here — smaller, better, and more intuitive than ever.

Dominik Dorfmeister · Oct 17, 2023
React Query and React Context

Can it make sense to combine React Query with React Context ? Yes, sometimes ...

Dominik Dorfmeister · Jul 22, 2023
Thinking in React Query

In this talk, we will learn how a different mindset can help us understand React Query and work with it efficiently.

Dominik Dorfmeister · Jun 7, 2023
You Might Not Need React Query

React Query is a great library, but like any tool, you should choose it for the right problem

Dominik Dorfmeister · May 20, 2023
Breaking React Query's API on purpose

Why good API design matters, even if it means breaking existing APIs in the face of resistance.

Dominik Dorfmeister · Apr 16, 2023
Type-safe React Query

About the difference between "having types" and "being type-safe"...

Dominik Dorfmeister · Jan 7, 2023
Inside React Query

Taking a look under the hood of React Query

Dominik Dorfmeister · Dec 3, 2022
Seeding the Query Cache

With suspense for data fetching on the horizon, it is now more important than ever to make sure your cache is seeded properly to avoid fetch waterfalls.

Dominik Dorfmeister · Oct 22, 2022
React Query meets React Router

React Query and React Router are a match made in heaven.

Dominik Dorfmeister · Aug 28, 2022
Announcing TanStack Query v4

The next version of TanStack Query is here. The rebranding and monorepo restructuring finally allows us to bring the joy of react-query to other frameworks like Vue, Svelte, and Solid.

Dominik Dorfmeister · Jul 14, 2022
React Query FAQs

Answering the most frequently asked React Query questions

Dominik Dorfmeister · Jun 24, 2022
React Query and Forms

Forms tend to blur the line between server and client state, so let's see how that plays together with React Query.

Dominik Dorfmeister · Apr 10, 2022
Offline React Query

A glimpse at what v4 will bring for offline queries

Dominik Dorfmeister · Feb 5, 2022
Leveraging the Query Function Context

Use what React Query provides for optimal type safety

Dominik Dorfmeister · Oct 26, 2021
Mastering Mutations in React Query

Learn all about the concept of performing side effects on the server with React Query.

Dominik Dorfmeister · Oct 9, 2021
React Query Error Handling

After covering the sunshine cases of data fetching, it's time to look at situations where things don't go as planned and "Something went wrong..."

Dominik Dorfmeister · Sep 10, 2021
React Query as a State Manager

Everything you need to know to make React Query your single source of truth state manager for your async state

Dominik Dorfmeister · Aug 20, 2021
Placeholder and Initial Data in React Query

Learn about the different possibilities to avoid loading spinners in React Query.

Dominik Dorfmeister · Aug 9, 2021
Effective React Query Keys

Learn how to structure React Query Keys effectively as your App grows

Dominik Dorfmeister · Jun 13, 2021
Using WebSockets with React Query

A step-by-step guide on how to make real-time notifications work with react-query

Dominik Dorfmeister · Jun 6, 2021
React Query and TypeScript

Combine two of the most powerful tools for React Apps to produce great user experience, developer experience and type safety.

Dominik Dorfmeister · May 16, 2021
Testing React Query

Let's take a look at how to efficiently test custom useQuery hooks and components using them.

Dominik Dorfmeister · Apr 4, 2021
Status Checks in React Query

How the wrong status check order can negatively impact user experience

Dominik Dorfmeister · Mar 27, 2021
React Query Render Optimizations

An advanced guide to minimize component re-renderings when using React Query

Dominik Dorfmeister · Mar 20, 2021
React Query Data Transformations

Learn the possibilities to perform the quite common and important task of transforming your data with react-query

Dominik Dorfmeister · Mar 10, 2021
Practical React Query

Let me share with you the experiences I have made lately with React Query. Fetching data in React has never been this delightful...

Dominik Dorfmeister · Nov 16, 2020