UseChatPagesResult
Defined in: libs/ccs-chat-user-client/src/react/hooks.ts:68
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”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).
Inherited from
Section titled “Inherited from”hasMore
Section titled “hasMore”hasMore:
boolean
Defined in: libs/ccs-chat-user-client/src/react/stores.ts:66
More (older) pages exist.
Inherited from
Section titled “Inherited from”error:
unknown
Defined in: libs/ccs-chat-user-client/src/react/stores.ts:67
Inherited from
Section titled “Inherited from”loading
Section titled “loading”loading:
boolean
Defined in: libs/ccs-chat-user-client/src/react/stores.ts:69
Loading the first page.
Inherited from
Section titled “Inherited from”loadingMore
Section titled “loadingMore”loadingMore:
boolean
Defined in: libs/ccs-chat-user-client/src/react/stores.ts:71
Loading a further page.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”reload()
Section titled “reload()”reload():
Promise<void>
Defined in: libs/ccs-chat-user-client/src/react/hooks.ts:69
Returns
Section titled “Returns”Promise<void>
loadMore()
Section titled “loadMore()”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.
Returns
Section titled “Returns”Promise<void>
mutate()
Section titled “mutate()”mutate(
update):void
Defined in: libs/ccs-chat-user-client/src/react/hooks.ts:72
Parameters
Section titled “Parameters”update
Section titled “update”(items) => T[]
Returns
Section titled “Returns”void