@logixjs/core
    Preparing search index...

    Interface WithController<C>

    Handle(消费面): 在 .logic() 内消费依赖的“可用视图”。

    • ModuleHandle: yield* $.use(SomeModule) 返回的只读句柄(read/changes/dispatch/actions)。
    • ServiceHandle: yield* $.use(ServiceTag) 返回的 Service 实例(推荐同样提供 .controller 作为命令面)。

    设计目标:

    • 为“做成自定义 Module” vs “做成可注入 Service(Tag + Layer)”提供统一语言与判断依据;
    • 让业务逻辑消费方式趋同:拿到 handle → read/observe → 通过 controller 发命令(若存在)。
    interface WithController<C extends object = object> {
        controller: C;
    }

    Type Parameters

    • C extends object = object
    Index

    Properties

    Properties

    controller: C