Interface: Viewable
API / @xmachines/play-view / index / Viewable
Defined in: packages/play-view/src/view-types.ts:88
The actor capability that exposes a renderable view state.
Viewable marks an actor that publishes a currentView atom.
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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
currentView | readonly | ReadonlyAtom<PlaySpec | null> | The atom 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-view/src/view-types.ts:95 |