Skip to main content

Interface: SimpleActionContext

Simplified version of action context.

Properties​

actionName​

readonly actionName: string;

Action name


args​

readonly args: readonly any[];

Array of action arguments.


data​

readonly data: Record<symbol, any>;

Custom data for the action context to be set by middlewares, an object. Symbols must be used as keys to avoid name clashing between middlewares.


parentContext?​

readonly optional parentContext?: SimpleActionContext;

Parent action context, if any.


rootContext​

readonly rootContext: SimpleActionContext;

Root action context, or itself if the root.


target​

readonly target: AnyModel;

Action target model instance.


type​

readonly type: ActionContextActionType;

Action type, sync or async.