hooks/useSCFetchBroadcastMessages
Functions
useSCFetchBroadcastMessages()
useSCFetchBroadcastMessages(
props
?):object
info
This custom hook is used to fetch broadcast messages.
Context can be consumed in this way:
const {messages, isLoading} = useSCFetchBroadcastMessages();
Parameters
Parameter | Type | Description |
---|---|---|
props ? | object | |
props.cacheStrategy ? | CacheStrategies | - |
Returns
object
Member | Type |
---|---|
data | SCPaginatedResponse <SCBroadcastMessageType > |
fetchMessages | (refresh ) => Promise <SCPaginatedResponse <SCBroadcastMessageType >> |
loading | boolean |
setMessages | (messages ) => object |
Source
packages/react-core/src/hooks/useSCFetchBroadcastMessages.ts:35