Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/workflows/hooks/useMachineFlow

Cockpit client (features), v0.8. Source: ui/client/features/workflows/hooks/useMachineFlow.tsx.

Functions#

useMachineFlow()#

useMachineFlow(machine): object

Defined in: ui/client/features/workflows/hooks/useMachineFlow.tsx:14

React Flow nodes/edges for one extracted machine — derived from the machine on every change, never persisted.

Parameters#

machine

WorkflowMachine

Returns#

object

edges

edges: TransitionEdge[]

nodes

nodes: StateNode[]

References#

StateNodeData#

Re-exports StateNodeData