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

UnionOptions

mobx-state-tree - v7.0.2 › UnionOptions

Type parameters

▪ Types: IAnyType[]

Hierarchy

  • UnionOptions

Index

Properties

  • dispatcher
  • eager

Properties

Optional dispatcher

• dispatcher? : ITypeDispatcher‹Types›

Defined in src/types/utility-types/union.ts:38

A function that returns the type to be used given an input snapshot.


Optional eager

• eager? : undefined | false | true

Defined in src/types/utility-types/union.ts:33

Whether or not to use eager validation.

When true, the first matching type will be used. Otherwise, all types will be checked and the validation will pass if and only if a single type matches.

← ReferenceOptionsOnInvalidated
  • Type parameters
  • Hierarchy
  • Index
    • Properties
  • Properties
    • Optional dispatcher
    • Optional eager
MobX-state-tree
Docs
Getting StartedBasic conceptsAdvanced conceptsAPI Reference
Community
GitHub DiscussionsStack Overflow
More
BlogGitHubStar
Facebook Open Source
Copyright © 2025 Michel Weststrate