Skip to content

wirestate-mobx

Framework-agnostic MobX re-exports with Wirestate-friendly decorator aliases.

Define observable service state here once, then render it with @wirestate/react-mobx (React) or @wirestate/lit-mobx (Lit).

Interfaces

InterfaceDescription
IReactionPublicReactions are a special kind of derivations. Several things distinguishes them from normal reactive computations

MobX

NameDescription
FlowCancellationError-
ObservableMap-
ObservableSet-
Reaction-
IActionFactory-
IActionRunInfo-
IArraySplice-
IArrayUpdate-
IArrayWillChange-
IArrayWillSplice-
IAtom-
IAutorunOptions-
IComputedFactory-
IComputedValue-
IComputedValueOptions-
IDependencyTree-
IDepTreeNode-
IEnhancer-
IEqualsComparer-
IInterceptable-
IKeyValueMap-
IListenable-
IMapWillChange-
IObservable-
IObservableArray-
IObservableFactory-
IObservableValue-
IObserverTree-
IReactionDisposer-
IValueWillChange-
IWhenOptions-
Lambda-
AnnotationMapEntry-
AnnotationsMap-
CreateObservableOptions-
IArrayDidChange-
IInterceptor-
IMapDidChange-
IMapEntries-
IMapEntry-
IObjectDidChange-
IObjectWillChange-
IObservableMapInitialValues-
IObservableSetInitialValues-
IReactionOptions-
ISetDidChange-
ISetWillChange-
IValueDidChange-
$mobx-
comparer-
flow-
isBoxedObservable-
isObservableMap-
isObservableSet-
override-
autorun-
configure-
createAtom-
defineProperty-
entries-
extendObservable-
flowResult-
get-
getAtom-
getDebugName-
getDependencyTree-
getObserverTree-
has-
intercept-
isAction-
isComputed-
isComputedProp-
isFlow-
isFlowCancellationError-
isObservable-
isObservableArray-
isObservableObject-
isObservableProp-
keys-
makeAutoObservable-
makeObservable-
observe-
onBecomeObserved-
onBecomeUnobserved-
onReactionError-
ownKeys-
reaction-
remove-
runInAction-
set-
spy-
toJS-
trace-
transaction-
untracked-
values-
when-

MobX aliases

FunctionDescription
ActionMobX action decorator alias.
BoundActionMobX bound action decorator alias.
ComputedMobX computed decorator alias.
DeepObservableMobX deep observable decorator alias.
ObservableMobX observable decorator alias.
RefObservableMobX ref observable decorator alias.
ShallowObservableMobX shallow observable decorator alias.