Sanity Library Reference Docs
    Preparing search index...
    • The open (un-exited) StageEntry matching currentStage, or undefined. On loop-backs (re-entering a stage) several entries share a name — the prior ones have exitedAt set, the current one does not. Reads the stages + currentStage shape shared by the persisted WorkflowInstance and the engine's mutable copy.

      Parameters

      • host: { currentStage: string; stages: StageEntry[] }

      Returns StageEntry | undefined