Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Update the guide's content #41

Mergedfukomerged 18 commits intomain fromrefs/pull/41/headmerged by fuko View on GitHub

Showing 19 changed files with 21 additions and 5 deletions (loading 15).

x
0 of 19 viewed, 19 left
2 additions and 0 deletionssrc/collections/projects.tsModified
View file
@@ -34,6 +34,8 @@
// TODO: handle error
console.error("Failed to update todo item:", error);
+ // Re-throw to trigger immediate rollback of optimistic update
+ throw error;
},
getKey: (item) => item.id,
4 additions and 2 deletionssrc/collections/todoItems.tsModified
View file
@@ -65,7 +65,7 @@
parsed.filters.forEach(({ field, operator, value }) => {
const fieldName = field.join(".");
​
- // Currently only "eq" operator is supported in the API
+ // Currently only the "eq" operator is supported by our API
if (operator === "eq") {
params.set(fieldName, String(value));
@@ -90,6 +90,7 @@