|
4 | 4 |
|
5 | 5 | **A reactive client store for building super fast apps on sync** |
6 | 6 |
|
7 | | -TanStack DB extends TanStack Query with collections, live queries and transactional mutations that keep your UI reactive, consistent and blazing fast 🔥 |
| 7 | +TanStack DB extends TanStack Query with collections, live queries and optimistic mutations that keep your UI reactive, consistent and blazing fast 🔥 |
8 | 8 |
|
9 | 9 | <p> |
10 | 10 | <a href="https://x.com/intent/post?text=TanStack%20DB&url=https://tanstack.com/db"> |
@@ -50,7 +50,7 @@ Sync data into collections: |
50 | 50 | ```ts |
51 | 51 | import { createQueryCollection } from "@tanstack/db-collections" |
52 | 52 |
|
53 | | -const todoCollection = createQueryCollection<TodoList>({ |
| 53 | +const todoCollection = createQueryCollection<Todo>({ |
54 | 54 | queryKey: ["todos"], |
55 | 55 | queryFn: async () => fetch("/api/todos"), |
56 | 56 | getId: (item) => item.id, |
@@ -121,15 +121,15 @@ There's also an example [React todo app](./examples/react/todo) and usage exampl |
121 | 121 | - typed sets of objects that can mirror a backend table or be populated with a filtered view or result set, such as `pendingTodos` or `decemberNewTodos` |
122 | 122 | - collections are just JavaScript data — load them on demand and define as many as you need |
123 | 123 |
|
124 | | -### Live Queries |
| 124 | +### Live queries |
125 | 125 |
|
126 | 126 | - run reactively against and across collections with support for joins, filters and aggregates |
127 | 127 | - powered by differential dataflow: query results update incrementally, not by re-running the whole query |
128 | 128 |
|
129 | | -### Transactions |
| 129 | +### Transactional mutators |
130 | 130 |
|
131 | 131 | - batch and stage local changes across collections with immediate application of local optimistic updates |
132 | | -- sync to the backend using flexible mutationFns with automatic rollbacks and management of optimistic state |
| 132 | +- sync transactions to the backend with automatic rollbacks and management of optimistic state |
133 | 133 |
|
134 | 134 | ## 🔧 Install |
135 | 135 |
|
|
0 commit comments