footprintjs - v11.2.0
    Preparing search index...

    Function walkSubflowSpec

    • Walk a subflow spec, yielding its structure as flat ordered items.

      Parameters

      Returns Generator<WalkerItem, void, void>

      import { walkSubflowSpec } from 'footprintjs/trace';

      onSubflowMounted(event) {
      if (!event.subflowSpec) return; // lazy mount — no spec yet
      for (const item of walkSubflowSpec(event.subflowSpec, event.subflowPath)) {
      switch (item.kind) {
      case 'subflow-start': break; // entry boundary
      case 'stage': break; // inner stage
      case 'edge': break; // inner edge
      case 'loop': break; // inner loop back-edge
      case 'subflow': break; // nested mount marker
      }
      }
      }