Skip to content

mountBotMessageScoped

mountBotMessageScoped<Host, Message, Snapshot, Interaction, Props, R, E>(options): Effect<{ message: Message; root: BotMessageRoot<Host, Message, Snapshot, Interaction>; }, MessageTargetError | MessageMountError | E, Scope | R>

Defined in: packages/core/src/message/mount.ts:154

Scoped form of mountBotMessage: the root closes when the surrounding Scope closes.

Host

Message

Snapshot

Interaction

Props

R = never

E = never

MountBotMessageOptions<Host, Message, Snapshot, Interaction, Props, R, E>

Effect<{ message: Message; root: BotMessageRoot<Host, Message, Snapshot, Interaction>; }, MessageTargetError | MessageMountError | E, Scope | R>