Documentation
    Preparing search index...

    Interface EffectContext

    Context passed to an effect handler.

    It provides the runner logger, nested effect calling, and a per-invocation cache flag. The cache flag is mutable by design so handlers can skip persistence for partial or failed responses.

    interface EffectContext {
        cache: boolean;
        effect: EffectCaller;
        log: Logger;
    }
    Index
    cache: boolean

    Whether to persist this call's result. Defaults to the effect's cache option; set to false inside the handler to skip caching this invocation.

    effect: EffectCaller

    Call another effect through the same runner.

    log: Logger

    Access the runner logger.