We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e246a9 commit f21359bCopy full SHA for f21359b
1 file changed
src/collections/todoItems.ts
@@ -165,21 +165,6 @@ export const todoItemsCollection = createCollection<TodoItemRecord>(
165
);
166
},
167
168
-
169
- queryClient.setQueriesData<TodoItemRecord[]>(
170
- { queryKey: todoItemsQueryKey },
171
- (oldData) => {
172
- console.log(
173
- "Updating query cache, oldData:",
174
- oldData?.length,
175
- "items",
176
- );
177
- if (!oldData) return oldData;
178
- return oldData.map((item) =>
179
- item.id === original.id ? { ...item, ...changes } : item,
180
181
- },
182
183
} catch (_) {
184
toast.error(`Failed to update todo item "${original.title}"`);
185
0 commit comments