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

Method submit

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

Source from the content-addressed store, hash-verified

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

Callers 1

Devtools.test.tsxFile · 0.45

Calls 1

mutateMethod · 0.45

Tested by

no test coverage detected