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

Method submitMessage

examples/lit/chat/src/main.ts:29–36  ·  view source on GitHub ↗
(event: SubmitEvent)

Source from the content-addressed store, hash-verified

27 }
28
29 private submitMessage(event: SubmitEvent) {
30 event.preventDefault()
31 this.questions = [
32 ...this.questions,
33 { id: crypto.randomUUID(), question: this.currentQuestion },
34 ]
35 this.currentQuestion = ''
36 }
37
38 render() {
39 return html`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected