Skip to content

Interface: ViewTree

API / @xmachines/play-view / index / ViewTree

Defined in: packages/play-view/src/compose-views.ts:27

The resolved view of one active state node, and the resolved views of its children.

Properties

PropertyModifierTypeDescriptionDefined in
childrenreadonlyreadonly ViewTreeChild[]The resolved view of each active child, in the order of the machine. It is empty for a view that declares no outlets.packages/play-view/src/compose-views.ts:36
idreadonlystringThe id of the state node that declares view.packages/play-view/src/compose-views.ts:29
viewreadonlyViewMetaThe meta.view of that state node, as the author wrote it.packages/play-view/src/compose-views.ts:31