MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / addTodo

Function addTodo

examples/sandbox/src/Todos.tsx:71–80  ·  view source on GitHub ↗
(e: SubmitEvent)

Source from the content-addressed store, hash-verified

69 setTodos('other', 'else', unwrap(todos.values))
70
71 const addTodo = (e: SubmitEvent) => {
72 e.preventDefault()
73 s.batch(() => {
74 setTodos('values', todos.values.length, {
75 title: newTitle(),
76 done: false,
77 })
78 setTitle('')
79 })
80 }
81
82 // setTimeout(() => {
83 // setTodos(

Callers

nothing calls this directly

Calls 1

newTitleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…