Information about the activator that loaded a microfrontend.

This context is available to a microfrontend if loaded by an application activator. This object can be obtained from the ContextService using the name ACTIVATION_CONTEXT.

const ctx = await Beans.get(ContextService).lookup<ActivationContext>(ACTIVATION_CONTEXT);
interface ActivationContext {
    activator: ActivatorCapability;
    primary: boolean;
}

Properties

Properties

Metadata about the activator that activated the microfrontend.

primary: boolean

Indicates whether running in the context of the primary activator. The platform nominates one activator of each app as primary activator.