TanStack
Back to all posts

TanStack Query Blog

Posts about TanStack Query.

TanStack Router and Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Solid 2.0 Beta Support in TanStack Router, Start, and Query

by Brenley Dueck and Birk Skyum

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.

Read More

Creating Query Abstractions

by Dominik Dorfmeister

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

Read on TkDodo's Blog

React Query Selectors, Supercharged

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Concurrent Optimistic Updates in React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

React Query - The Bad Parts

by Dominik Dorfmeister

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.

Read on TkDodo's Blog

React Query API Design - Lessons Learned

by Dominik Dorfmeister

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.

Read on TkDodo's Blog

How Infinite Queries work

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Automatic Query Invalidation after Mutations

by Dominik Dorfmeister

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.

Read on TkDodo's Blog

The Query Options API

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Why You Want React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Announcing TanStack Query v5

by Dominik Dorfmeister

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.

Read More

React Query and React Context

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Thinking in React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

You Might Not Need React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Breaking React Query's API on purpose

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Type-safe React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Inside React Query

by Dominik Dorfmeister

Taking a look under the hood of React Query

Read on TkDodo's Blog

Seeding the Query Cache

by Dominik Dorfmeister

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.

Read on TkDodo's Blog

React Query meets React Router

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Announcing TanStack Query v4

by Dominik Dorfmeister

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.

Read More

React Query FAQs

by Dominik Dorfmeister

Answering the most frequently asked React Query questions

Read on TkDodo's Blog

React Query and Forms

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Offline React Query

by Dominik Dorfmeister

A glimpse at what v4 will bring for offline queries

Read on TkDodo's Blog

Leveraging the Query Function Context

by Dominik Dorfmeister

Use what React Query provides for optimal type safety

Read on TkDodo's Blog

Mastering Mutations in React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

React Query Error Handling

by Dominik Dorfmeister

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

Read on TkDodo's Blog

React Query as a State Manager

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Placeholder and Initial Data in React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Effective React Query Keys

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Using WebSockets with React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

React Query and TypeScript

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Testing React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Status Checks in React Query

by Dominik Dorfmeister

How the wrong status check order can negatively impact user experience

Read on TkDodo's Blog

React Query Render Optimizations

by Dominik Dorfmeister

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

Read on TkDodo's Blog

React Query Data Transformations

by Dominik Dorfmeister

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

Read on TkDodo's Blog

Practical React Query

by Dominik Dorfmeister

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

Read on TkDodo's Blog