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.
Properties
Section titled “Properties”onOrchestrator?
Section titled “onOrchestrator?”
optionalonOrchestrator?: (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.
Parameters
Section titled “Parameters”attach
Section titled “attach”(orchestrator) => () => void
Returns
Section titled “Returns”() => void
useMaelstromContext
Section titled “useMaelstromContext”useMaelstromContext: () =>
MaelstromExtensionContextValue
Defined in: packages/react/src/lib/extension-types.ts:32