Raxol.Core.Runtime.ComponentManager (Raxol v0.3.0)

View Source

Manages component lifecycle and state in the Raxol runtime system.

This module is responsible for:

  • Mounting and unmounting components
  • Managing component state
  • Handling event dispatch to components
  • Managing component subscriptions
  • Coordinating updates and renders

Summary

Functions

Returns a specification to start this module under a supervisor.

Retrieves a specific component's data by its ID.

Retrieves the current render queue and clears it.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

dispatch_event(event)

get_component(component_id)

@spec get_component(String.t()) :: map() | nil

Retrieves a specific component's data by its ID.

get_render_queue()

@spec get_render_queue() :: [String.t()]

Retrieves the current render queue and clears it.

mount(component_module, props \\ %{})

set_runtime_pid(pid)

start_link(opts \\ [])

unmount(component_id)

update(component_id, message)