Ils sont fous chez TanStack, ils ont mis une DB da…
summary
TanStack DB is a client-side database layer built on differential dataflow that wires into existing TanStack Query calls, exposes SQL-like live queries and collections, and gives optimistic updates by default. The demo migrates an Ionic app to DB, shows instant navigation after a one-time bulk load (2,000 items ≈ 635 KB — ~635 ms on 3G), and drives realtime sync via a pluggable sync engine. It’s beta software, works in the demo, and promises local‑first offline UX but requires backend sync work and a paradigm shift to move logic into the frontend.
AI-written summary · about
chapters (18)
- 0:00Introduction to TanStack DB
- 5:54Traditional frontend data fetching
- 8:28Flux pattern and Redux
- 10:32Why not build your own cache
- 14:21Differential dataflow explained
- 16:47TanStack DB core features
- 18:53Defining collections in TanStack DB
- 22:25Mutations and cache invalidation
- 23:06Live demo of TanStack DB
- 26:18Advantages of TanStack DB
- 27:41Performance with large datasets
- 29:26Switching between strategies
- 30:53Local First concept
- 34:00How Local First works
- 36:08Backend role in Local First
- 37:30When to use Local First
- 39:17Should you adopt TanStack DB now
- 42:18Q&A and closing remarks
