MCPcopy Index your code
hub / github.com/TanStack/ai / send

Function send

examples/ts-react-native-chat/src/App.tsx:458–463  ·  view source on GitHub ↗
(nextPrompt = input)

Source from the content-addressed store, hash-verified

456 })
457
458 async function send(nextPrompt = input) {
459 const next = nextPrompt.trim()
460 if (!next || isLoading) return
461 setInput('')
462 await sendMessage(next)
463 }
464
465 async function reloadLast() {
466 if (isLoading || messages.length === 0) return

Callers 1

AppFunction · 0.70

Calls 1

sendMessageFunction · 0.50

Tested by

no test coverage detected