Rxova
Skip to content

useChannel

function useChannel<M, R>(name): Channel<M, R>;

Get the page-wide typed channel for name (one instance per name).

Type ParameterDefault type
M extends MessageMap-
R extends Partial<Record<keyof M, unknown>>Record<never, never>
ParameterType
namestring

Channel<M, R>