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;
}