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

ISnapshotProcessors

mobx-state-tree - v7.0.2 › ISnapshotProcessors

Snapshot processors.

Type parameters

▪ IT: IAnyType

▪ CustomC

▪ CustomS

Hierarchy

  • ISnapshotProcessors

Index

Methods

  • postProcessor
  • preProcessor

Methods

Optional postProcessor

▸ postProcessor(snapshot: IT["SnapshotType"], node: Instance‹IT›): _CustomOrOther‹CustomS, IT["SnapshotType"]›

Defined in src/types/utility-types/snapshotProcessor.ts:230

Function that transforms an output snapshot.

Parameters:

NameTypeDescription
snapshotIT["SnapshotType"]
nodeInstance‹IT›-

Returns: _CustomOrOther‹CustomS, IT["SnapshotType"]›


Optional preProcessor

▸ preProcessor(snapshot: _CustomOrOther‹CustomC, IT["CreationType"]›): IT["CreationType"]

Defined in src/types/utility-types/snapshotProcessor.ts:224

Function that transforms an input snapshot.

Parameters:

NameType
snapshot_CustomOrOther‹CustomC, IT["CreationType"]›

Returns: IT["CreationType"]

← ISnapshotProcessorIType →
  • Type parameters
  • Hierarchy
  • Index
    • Methods
  • Methods
    • Optional postProcessor
    • Optional preProcessor
MobX-state-tree
Docs
Getting StartedBasic conceptsAdvanced conceptsAPI Reference
Community
GitHub DiscussionsStack Overflow
More
BlogGitHubStar
Facebook Open Source
Copyright © 2025 Michel Weststrate