Skip to main content

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

ParameterTypeDescription
props?object
props.cacheStrategy?CacheStrategies-

Returns

object

MemberType
dataSCPaginatedResponse<SCBroadcastMessageType>
fetchMessages(refresh) => Promise<SCPaginatedResponse<SCBroadcastMessageType>>
loadingboolean
setMessages(messages) => object

Source

packages/react-core/src/hooks/useSCFetchBroadcastMessages.ts:35