auth.provider API
    Preparing search index...

    Per-component lifecycle hooks declared by a module for one of its provided component slots.

    • eager: When true the boot planner instantiates this component unconditionally during createApp, even if no other component declares it as a dependency. Default is false (lazy).
    • cleanup: Called during app.dispose() in reverse-topological order. Errors from all cleanup functions are aggregated into an AggregateError that dispose() rejects with (§6.3).

    The K parameter is a ComponentKey; ComponentMap[K] resolves to the exact value type for that slot, giving cleanup a typed value parameter.

    Per A2-β §4.1.

    interface ComponentLifecycle<K extends ComponentKey> {
        cleanup?: (value: ComponentMap[K]) => void | Promise<void>;
        eager?: boolean;
    }

    Type Parameters

    Index

    Properties

    Properties

    cleanup?: (value: ComponentMap[K]) => void | Promise<void>

    Called on dispose with the resolved component value. Per A2-β §4.1. Errors aggregate into the AggregateError that dispose() rejects with.

    eager?: boolean

    When true, eagerly instantiate this component at boot. Per A2-β §4.1.