onEvent
Home > @gooddata/sdk-pluggable-application-model > IPluggableApplicationMountOptions > onEvent
IPluggableApplicationMountOptions.onEvent property
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Callback invoked by the pluggable application to emit events.
Signature:
onEvent?: (e: IPluggableAppEvent) => void;
Remarks
The host remains the single writer of the canonical platform context; pluggable application emits events and host applies changes (if any) and publishes updated context via the updateContext callback on the mounted instance.