Skip to main content
Previewvendurehq/vendure/feat/4563-refund-destinations

UseChannel

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

Example

Tsx
Signature

Provides information about the active channel, and the means to set a new active channel.

Signature

isLoading

propertyboolean

Whether the channels are loading.

channels

propertyChannel[]

An array of all available channels.

activeChannel

propertyActiveChannel | undefined

The active channel.

setActiveChannel

property(channelId: string) => void

The function to set the active channel.

refreshChannels

property() => void

The function to refresh the channels.