@dxos/react-ui-menu
    Preparing search index...

    Function buildGraphMenu

    • Flatten a node's contributed actions (and nested AppGraphNode.ActionGroups) into the { nodes, edges } an useMenuActions / Menu consumes. The action nodes are spliced verbatim, so their Effect data (and captured _actionContext) execute via executeMenuAction without any onAction wiring.

      Pure over a resolve function so it is testable without a live graph; resolve(id) returns the direct actions for id (a node id at the top level, a group id when expanding a group).

      Parameters

      • resolve: (id: string) => ActionLike[]
      • nodeId: string
      • options: GraphMenuOptions = {}

      Returns ActionGraphProps