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).
Classes
| Class | Description |
|---|---|
| FlowCancellationError | - |
| Reaction | Reactions are a special kind of derivations. Several things distinguishes them from normal reactive computations |
Functions
| Function | Description |
|---|---|
| autorun | Creates a named reactive view and keeps it alive, so that the view is always updated if one of the dependencies changes, even when the view is not further used by something else. |
| 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 | Recursively converts an observable to it's non-observable native counterpart. It does NOT recurse into non-observables, these are left as they are, even if they contain observables. Computed and other non-enumerable properties are completely ignored. Complex scenarios require custom solution, eg implementing toJSON or using serializr lib. |
| trace | - |
| transaction | During a transaction no views are updated until the end of the transaction. The transaction will be run synchronously nonetheless. |
| untracked | - |
| values | - |
| when | - |
Interfaces
| Interface | Description |
|---|---|
| IReactionPublic | Reactions are a special kind of derivations. Several things distinguishes them from normal reactive computations |
MobX
MobX aliases
| Function | Description |
|---|---|
| Action | MobX action decorator alias. |
| BoundAction | MobX bound action decorator alias. |
| Computed | MobX computed decorator alias. |
| DeepObservable | MobX deep observable decorator alias. |
| Observable | MobX observable decorator alias. |
| RefObservable | MobX ref observable decorator alias. |
| ShallowObservable | MobX shallow observable decorator alias. |
Plugins
| Class | Description |
|---|---|
| ObservablePlugin | Applies MobX decorator annotations to every service the container activates. |
Variables
| Variable | Description |
|---|---|
| $mobx | - |
| comparer | - |
| flow | - |
| isBoxedObservable | - |
| isObservableMap | - |
| isObservableSet | - |
| override | - |