ComponentMountedEvent
POST event: a component finished mounting. Dispatched as `component.mounted` — pure notification, readonly, no slot; only fires once {@see \Milpa\Live\Contracts\Component\ComponentDefinitionInterface::mount()} has returned a {@see StateSnapshot} successfully. An exception thrown during mount (e.g. autocomplete's "requires a non-empty source" guard) means this event never fires for that call — {@see ComponentMountingEvent} still fired first, unconditionally.
ComponentMountedEvent::__construct()
public function __construct(string $componentName, array $props, Milpa\Live\ValueObjects\ComponentContext $context, Milpa\Live\ValueObjects\StateSnapshot $state):Parameters
| Name | Type | Description |
|---|---|---|
| $componentName | string | The component contract's registered name. |
| $props | array<string, mixed> | The mount-time props that were used. |
| $context | ComponentContext | The ambient context `mount()` was called with. |
| $state | StateSnapshot | The freshly-mounted state. |