Skip to content

MaelstromExtensionContext

Defined in: packages/react/src/lib/extension-types.ts:27

Context handle handed to a MaelstromExtension. Exposes a hook that, when called inside the matching Provider tree, returns the stable extension-context subset. The actual runtime object carries more fields, but only those listed here are part of the supported contract.

optional onOrchestrator?: (attach) => () => void

Defined in: packages/react/src/lib/extension-types.ts:29

Observes this extension branch and its descendants before Provider connection; returns registration cleanup.

(orchestrator) => () => void

() => void


useMaelstromContext: () => MaelstromExtensionContextValue

Defined in: packages/react/src/lib/extension-types.ts:32

MaelstromExtensionContextValue