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

Method submitForm

examples/lit/auto-refetching/src/main.ts:51–58  ·  view source on GitHub ↗
(event: SubmitEvent)

Source from the content-addressed store, hash-verified

49 }
50
51 private submitForm(event: SubmitEvent) {
52 event.preventDefault()
53 this.addMutation.mutate(this.value, {
54 onSuccess: () => {
55 this.value = ''
56 },
57 })
58 }
59
60 render() {
61 const { status, data, error, isFetching } = this.todos()

Callers

nothing calls this directly

Calls 1

mutateMethod · 0.45

Tested by

no test coverage detected