By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: TanStack DB Enters Beta with Reactive Queries, Optimistic Mutations, and Local-First Sync
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > TanStack DB Enters Beta with Reactive Queries, Optimistic Mutations, and Local-First Sync
News

TanStack DB Enters Beta with Reactive Queries, Optimistic Mutations, and Local-First Sync

News Room
Last updated: 2025/08/30 at 5:07 AM
News Room Published 30 August 2025
Share
SHARE

TanStack, the team behind TanStack Query, have announced the beta release of TanStack DB, an embedded client-side database designed to bring reactive queries, transactional mutations, and real-time sync to frontend applications. The library is built on top of TanStack Query and aims to simplify complex state management and caching in modern web apps.

TanStack DB introduces several new capabilities, including typed collections, live queries, and transactional mutators. Collections act as normalized stores of records, while live queries allow developers to subscribe to results that update incrementally as underlying data changes. Unlike traditional re-runs of queries, TanStack DB uses a differential dataflow engine to recalculate only the parts of a query affected by a change, leading to sub-millisecond query updates even for complex joins.

One of the headline features is support for optimistic mutations. Developers can apply changes locally and immediately reflect them in the UI, while TanStack DB handles syncing and rollbacks in the background. This approach builds on patterns in TanStack Query but aims to make them more reliable.

Collections, Live Queries and and Mutations can be used in a format similar to existing users of TanStack Query, with examples in the documentation:

 


const todoCollection = createCollection({

    // ...config

    onUpdate: updateMutationFn,

})


const { data: todos } = useLiveQuery((q) =>

   q.from({ todo: todoCollection }).where(({ todo }) => todo.completed)

)

const complete = (todo) => {

   todoCollection.update(todo.id, (draft) => {

      draft.completed = true

   })

}

TanStack DB also places emphasis on backend-agnostic sync. Data can be loaded or synchronized from REST, GraphQL, polling APIs, or real-time sync providers such as ElectricSQL. This enables local-first workflows where large datasets can be preloaded and kept in sync without introducing custom state management layers or manual reconciliation logic.

Early feedback from the developer community has highlighted both excitement and caution. On r/reactjs, one developer commented:

Looks promising but still rough. I wouldn’t bet my app on the Beta.

On Hacker News, there is some excitement, commenting that current implementations are difficult to work with:

Very excited for this. Current client-side DB implementations are hard to work with. Will it support IndexedDB?

In a longer write-up, Shayan from Medium argued that TanStack DB addresses long-standing issues with optimistic updates in frontend frameworks:

Optimistic updates using just TanStack Query? Let’s be honest, they kind of suck… TanStack DB extends TanStack Query with collections, live queries, and optimistic mutations to keep the UI reactive, consistent, and blazing fast.

TanStack DB is still in beta, and the maintainers caution that it should be considered experimental for now. However, its incremental adoption model allows developers to integrate it gradually into existing TanStack Query applications, and adapters are already available for React, Vue, Solid, Svelte or VanillaJS.

TanStack DB is open source and available on npm. Documentation, examples, and guides are provided on the official site.

 

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Labor Day Tech Deals: This Foldable Charger Is Smaller Than My Granola Bar, and It’s $11
Next Article Palantir is Mapping Government Data. What it means for governance
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Your iPhone Has A Built In VPN Feature – Here’s How To Use It – BGR
News
The Big Idea: why we should embrace AI doctors
News
This simple Apple TV trick lets you ditch your extra remotes
News
Who Was Pratik Pandey? Inside The Life Of Indian Techie Found Dead At Microsoft Office In California
Mobile

You Might also Like

News

Your iPhone Has A Built In VPN Feature – Here’s How To Use It – BGR

3 Min Read
News

The Big Idea: why we should embrace AI doctors

8 Min Read
News

This simple Apple TV trick lets you ditch your extra remotes

5 Min Read
News

The Verge’s favorite gifts for book lovers

0 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?