Skip to main content

UseChannel

useChannel

Status: Developer Preview

Provides access to the ChannelContext which contains information about the active channel.

Signature
function useChannel(): void

ChannelContext

Status: Developer Preview

Signature
interface ChannelContext {
activeChannel: ActiveChannel | undefined;
channels: Channel[];
selectedChannelId: string | undefined;
selectedChannel: Channel | undefined;
isLoading: boolean;
setSelectedChannel: (channelId: string) => void;
}

activeChannel

property
ActiveChannel | undefined

channels

property

selectedChannelId

property
string | undefined

selectedChannel

property
Channel | undefined

isLoading

property
boolean

setSelectedChannel

property
(channelId: string) => void