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

Function submitMessage

examples/solid/chat/src/index.tsx:51–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 const [currentQuestion, setCurrentQuestion] = createSignal('')
50
51 const submitMessage = () => {
52 setQuestions([
53 ...questions(),
54 { id: crypto.randomUUID(), question: currentQuestion() },
55 ])
56 setCurrentQuestion('')
57 }
58
59 return (
60 <div class="flex flex-col h-screen max-w-3xl mx-auto p-4">

Callers 1

ExampleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected