dynamic-forms / Function

emitComponentInitialized

Emits a component initialization event after the next render cycle.

This utility is used by container components (group, row, page, array) to signal that their child fields have been resolved and rendered. The event is dispatched through the EventBus and is used by the initialization tracking system.

Presentation

function emitComponentInitialized(
  eventBus: EventBus,
  componentType: InitializationComponentType,
  componentKey: string,
  injector: Injector,
): void;

Returns

void

Parameters

NameTypeDescription
eventBus
EventBus

The EventBus instance to dispatch the event on

componentType
InitializationComponentType

The type of component being initialized

componentKey
string

The unique key/id of the component

injector
Injector

The injector to use for afterNextRender scheduling