• Turn a per-root setup into a full enhancer with the shared lifecycle every Hydrateless component needs: root discovery (including the container itself), idempotent de-duplication, automatic listener teardown, re-enhancement after destroy, and a uniform handle exposing each instance's imperative API. This is the single contract all enhancers are built on.

    Type Parameters

    • Options extends object = Record<string, never>
    • Api = null

    Parameters

    Returns Enhancer<Options, Api>