MCPcopy Create free account
hub / github.com/TanStack/db / toggleTodo

Method toggleTodo

examples/angular/todos/src/app/app.ts:170–174  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

168 }
169
170 toggleTodo(id: number) {
171 todosCollection.update(id, (draft: any) => {
172 draft.completed = !draft.completed
173 })
174 }
175
176 deleteTodo(id: number) {
177 todosCollection.delete(id)

Callers 3

handleToggleTodoFunction · 0.80
TodoListFunction · 0.80
handleToggleTodoFunction · 0.80

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected