MCPcopy
hub / github.com/TanStack/query / chatQueryOptions

Function chatQueryOptions

examples/react/chat/src/chat.ts:26–33  ·  view source on GitHub ↗
(question: string)

Source from the content-addressed store, hash-verified

24}
25
26export const chatQueryOptions = (question: string) =>
27 queryOptions({
28 queryKey: ['chat', question],
29 queryFn: streamedQuery({
30 streamFn: () => chatAnswer(question),
31 }),
32 staleTime: Infinity,
33 })

Callers 1

ChatMessageFunction · 0.90

Calls 3

queryOptionsFunction · 0.90
streamedQueryFunction · 0.85
chatAnswerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…