Skip to content

UseChatPagesResult

Defined in: libs/ccs-chat-user-client/src/react/hooks.ts:68

T

items: T[]

Defined in: libs/ccs-chat-user-client/src/react/stores.ts:64

Every item loaded so far, in the API’s order (newest first for messages).

ChatPagesState.items


hasMore: boolean

Defined in: libs/ccs-chat-user-client/src/react/stores.ts:66

More (older) pages exist.

ChatPagesState.hasMore


error: unknown

Defined in: libs/ccs-chat-user-client/src/react/stores.ts:67

ChatPagesState.error


loading: boolean

Defined in: libs/ccs-chat-user-client/src/react/stores.ts:69

Loading the first page.

ChatPagesState.loading


loadingMore: boolean

Defined in: libs/ccs-chat-user-client/src/react/stores.ts:71

Loading a further page.

ChatPagesState.loadingMore

reload(): Promise<void>

Defined in: libs/ccs-chat-user-client/src/react/hooks.ts:69

Promise<void>


loadMore(): Promise<void>

Defined in: libs/ccs-chat-user-client/src/react/hooks.ts:71

Fetches the next (older) page and appends it; no-op without one.

Promise<void>


mutate(update): void

Defined in: libs/ccs-chat-user-client/src/react/hooks.ts:72

(items) => T[]

void