Function assignEventDataToContext

  • Parameters

    • args: ActionArgs<MachineContext, AnyEventObject, EventObject>
    • params: NonReducibleUnknown

    Returns void

    A context object updated with the data from the event, minus the event's type.

    Deprecated

    • only compatible with createOrchestrationMachineV2. Use BasicActions object if using createOrchestrationMachineV3

    An XState action that assigns event data to the context, excluding the 'type' property of the event. This action is useful in scenarios where the context needs to be updated with new data from an event, but the event's type should not overwrite any existing context properties.

Properties

Properties

_out_TActor?: ProvidedActor

Generated using TypeDoc