MCPcopy Create free account
hub / github.com/TanStack/query / submit

Method submit

examples/lit/basic/src/mutation.ts:79–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 private submit(): void {
80 const title = this.nextTitle.trim()
81 if (!title) return
82 this.addTodo.mutate(title)
83 this.nextTitle = ''
84 }
85
86 render() {
87 const query = this.todos()

Callers 1

Devtools.test.tsxFile · 0.80

Calls 1

mutateMethod · 0.45

Tested by

no test coverage detected