MobX-state-tree

MobX-state-tree

  • Documentation
  • TypeDocs
  • Sponsor
  • GitHub

›Interfaces

Introduction

  • Globals

Interfaces

  • CustomTypeOptions
  • FunctionWithFlag
  • IActionContext
  • IActionRecorder
  • IActionTrackingMiddleware2Call
  • IActionTrackingMiddleware2Hooks
  • IActionTrackingMiddlewareHooks
  • IAnyComplexType
  • IAnyModelType
  • IAnyType
  • IHooks
  • IJsonPatch
  • IMiddlewareEvent
  • IModelReflectionData
  • IModelReflectionPropertiesData
  • IModelType
  • IPatchRecorder
  • IReversibleJsonPatch
  • ISerializedActionCall
  • ISimpleType
  • ISnapshotProcessor
  • ISnapshotProcessors
  • IType
  • IValidationContextEntry
  • IValidationError
  • ReferenceOptionsGetSet
  • ReferenceOptionsOnInvalidated
  • UnionOptions
Edit

IMiddlewareEvent

mobx-state-tree - v7.0.2 › IMiddlewareEvent

Hierarchy

  • IActionContext

    ↳ IMiddlewareEvent

Index

Properties

  • allParentIds
  • args
  • context
  • id
  • name
  • parentActionEvent
  • parentEvent
  • parentId
  • rootId
  • tree
  • type

Properties

allParentIds

• allParentIds: number[]

Defined in src/core/action.ts:37

Id of all events, from root until current (excluding current)


args

• args: any[]

Inherited from IActionContext.args

Defined in src/core/actionContext.ts:20

Event arguments in an array (action arguments for actions)


context

• context: IAnyStateTreeNode

Inherited from IActionContext.context

Defined in src/core/actionContext.ts:15

Event context (node where the action was invoked)


id

• id: number

Inherited from IActionContext.id

Defined in src/core/actionContext.ts:9

Event unique id


name

• name: string

Inherited from IActionContext.name

Defined in src/core/actionContext.ts:6

Event name (action name for actions)


parentActionEvent

• parentActionEvent: IMiddlewareEvent | undefined

Inherited from IActionContext.parentActionEvent

Defined in src/core/actionContext.ts:12

Parent action event object


parentEvent

• parentEvent: IMiddlewareEvent | undefined

Defined in src/core/action.ts:32

Parent event object


parentId

• parentId: number

Defined in src/core/action.ts:30

Parent event unique id


rootId

• rootId: number

Defined in src/core/action.ts:35

Root event unique id


tree

• tree: IAnyStateTreeNode

Inherited from IActionContext.tree

Defined in src/core/actionContext.ts:17

Event tree (root node of the node where the action was invoked)


type

• type: IMiddlewareEventType

Defined in src/core/action.ts:27

Event type

← IJsonPatchIModelReflectionData →
  • Hierarchy
  • Index
    • Properties
  • Properties
    • allParentIds
    • args
    • context
    • id
    • name
    • parentActionEvent
    • parentEvent
    • parentId
    • rootId
    • tree
    • type
MobX-state-tree
Docs
Getting StartedBasic conceptsAdvanced conceptsAPI Reference
Community
GitHub DiscussionsStack Overflow
More
BlogGitHubStar
Facebook Open Source
Copyright © 2025 Michel Weststrate