MCPcopy Create free account
hub / github.com/experdot/pointer / useStreamingMessage

Function useStreamingMessage

src/renderer/src/stores/messagesStore.ts:681–683  ·  view source on GitHub ↗
(chatId: string, messageId: string)

Source from the content-addressed store, hash-verified

679
680// 自定义 hook 用于订阅流式消息状态
681export const useStreamingMessage = (chatId: string, messageId: string) => {
682 return useMessagesStore((state) => state.streamingMessages[chatId]?.[messageId])
683}
684
685// 自定义 hook 用于订阅整个聊天的流式消息状态
686export const useStreamingMessages = (chatId: string) => {

Callers 2

MessageItem.tsxFile · 0.90
MessageList.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected