useMessages
useMessages(
conversationId,options?):UseChatPagesResult<ChatMessage>
Defined in: libs/ccs-chat-user-client/src/react/hooks.ts:112
A conversation’s messages, newest first; loadMore() fetches older ones. Nothing loads while
conversationId is null. Prepend realtime messages with mutate((items) => [message, ...items]).
Parameters
Section titled “Parameters”conversationId
Section titled “conversationId”string | null | undefined
options?
Section titled “options?”limit?
Section titled “limit?”number