Overview
A convenience hook that wrapsuseChatMessages and useSendMessage for a specific message thread. Returns the thread’s replies and a sendReply function that automatically sets parentMessageId.
Requires
ChatProvider in the component tree.Usage Example
Props
The ID of the conversation that contains the thread.
The ID of the parent message whose thread to load.
Returns
Thread replies in ascending order (oldest first). See ChatMessage.
true while a fetch is in progress.true if there are more replies to load.Fetches more replies (newer than the newest loaded). No-ops if
loading is true or hasMore is false.Sends a reply to this thread. Accepts the same parameters as
useSendMessage except parentMessageId (set automatically). Returns the confirmed ChatMessage.Notes
- For integration guidance, see Chat: Threads.

