Rxova
Skip to content

Type Alias: GraphSnapshot<TContext, TStepId, TMeta, TEvents, TCompletePayload, TTerminatePayload>

@rxova/journey-react


@rxova/journey-react / GraphSnapshot

type GraphSnapshot<TContext, TStepId, TMeta, TEvents, TCompletePayload, TTerminatePayload> = Omit<JourneySnapshotBase<TContext, TStepId, TMeta, TCompletePayload, TTerminatePayload>, "currentStep"> & object;

Defined in: core/src/core/types.ts:178

Graph snapshots carry declared and enabled transition derivations; order fields don’t exist.

readonly availableEvents: readonly TEvents["type"][];

Events with at least one enabled candidate from the current step.

readonly availableSteps: readonly TStepId[];

Targets of enabled candidates from the current step.

readonly currentStep: CurrentStepBase<TStepId, TMeta> & object | null;
readonly declaredEvents: readonly TEvents["type"][];

Event names declared by outgoing candidates from the current step.

readonly outgoingTransitions: readonly GraphTransitionSnapshot<TStepId, TEvents["type"]>[];

Guard and selection state for every outgoing candidate from the current step.

readonly steps: object;
readonly totalSteps: number;
readonly visitedStepCount: number;
readonly type: "graph";
Type ParameterDefault type
TContext-
TStepId extends string-
TMeta-
TEvents extends JourneyEventObjectJourneyEventObject
TCompletePayloadunknown
TTerminatePayloadunknown