vapor-chamber API reference - v1.3.0
    Preparing search index...

    Type Alias ReactionOptions

    type ReactionOptions = {
        when?: (cmd: Command, result: CommandResult) => boolean;
        map?: (cmd: Command, result: CommandResult) => any;
        mapPayload?: (cmd: Command, result: CommandResult) => any;
    }
    Index

    Properties

    when?: (cmd: Command, result: CommandResult) => boolean

    Only react when this predicate returns true.

    map?: (cmd: Command, result: CommandResult) => any

    Transform the source command into the target command's target.

    mapPayload?: (cmd: Command, result: CommandResult) => any

    Transform the source command into the target command's payload.