Skip to content

Interface: Viewable

API / @xmachines/play-actor / Viewable

Defined in: packages/play-actor/src/abstract-actor.ts:103

The actor capability that exposes a renderable view state.

Viewable marks an actor that publishes a currentView signal. A renderer, such as PlayRenderer, reads this contract. It converts the description of the current view into a concrete UI, and the framework adapter therefore holds no view logic.

Properties

PropertyModifierTypeDescriptionDefined in
currentViewreadonlyState<PlaySpec | null>The signal of the current view. It holds the json-render PlaySpec of the current machine state, or null when no view is active. The infrastructure renders the view. This is the Logic-Driven UI invariant.packages/play-actor/src/abstract-actor.ts:110