UseChannel
Provides access to the ChannelContext which contains information about the active channel.
Example
Provides information about the active channel, and the means to set a new active channel.
isLoading
property
booleanWhether the channels are loading.
channels
property
Channel[]An array of all available channels.
activeChannel
property
ActiveChannel | undefinedThe active channel.
setActiveChannel
property
(channelId: string) => voidThe function to set the active channel.
refreshChannels
property
() => voidThe function to refresh the channels.
Was this chapter helpful?