@cartridge-engine/event
    Preparing search index...

    Function useEventBus

    • Access the raw EventBus instance from context.

      Throws if used outside an EventProvider.

      Type Parameters

      • T extends EventMap = Record<string, any>

        Event map type (defaults to Record<string, any>).

      Returns EventBus<T>

      The EventBus instance.

      If no EventProvider is found in the component tree.