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

IPatchRecorder

mobx-state-tree - v7.0.2 › IPatchRecorder

Hierarchy

  • IPatchRecorder

Index

Properties

  • inversePatches
  • patches
  • recording
  • reversedInversePatches

Methods

  • replay
  • resume
  • stop
  • undo

Properties

inversePatches

• inversePatches: ReadonlyArray‹IJsonPatch›

Defined in src/core/mst-operations.ts:137


patches

• patches: ReadonlyArray‹IJsonPatch›

Defined in src/core/mst-operations.ts:136


recording

• recording: boolean

Defined in src/core/mst-operations.ts:139


reversedInversePatches

• reversedInversePatches: ReadonlyArray‹IJsonPatch›

Defined in src/core/mst-operations.ts:138

Methods

replay

▸ replay(target?: IAnyStateTreeNode): void

Defined in src/core/mst-operations.ts:142

Parameters:

NameType
target?IAnyStateTreeNode

Returns: void


resume

▸ resume(): void

Defined in src/core/mst-operations.ts:141

Returns: void


stop

▸ stop(): void

Defined in src/core/mst-operations.ts:140

Returns: void


undo

▸ undo(target?: IAnyStateTreeNode): void

Defined in src/core/mst-operations.ts:143

Parameters:

NameType
target?IAnyStateTreeNode

Returns: void

← IModelTypeIReversibleJsonPatch →
  • Hierarchy
  • Index
    • Properties
    • Methods
  • Properties
    • inversePatches
    • patches
    • recording
    • reversedInversePatches
  • Methods
    • replay
    • resume
    • stop
    • undo
MobX-state-tree
Docs
Getting StartedBasic conceptsAdvanced conceptsAPI Reference
Community
GitHub DiscussionsStack Overflow
More
BlogGitHubStar
Facebook Open Source
Copyright © 2025 Michel Weststrate