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.
Type Parameters
Section titled “Type Parameters”Host
Message
Section titled “Message”Message
Snapshot
Section titled “Snapshot”Snapshot
Interaction
Section titled “Interaction”Interaction
Props
R = never
E = never
Parameters
Section titled “Parameters”options
Section titled “options”MountBotMessageOptions<Host, Message, Snapshot, Interaction, Props, R, E>
Returns
Section titled “Returns”Effect<{ message: Message; root: BotMessageRoot<Host, Message, Snapshot, Interaction>; }, MessageTargetError | MessageMountError | E, Scope | R>