npm package: @lyo/mobx
Description: Browser-compatible version of mobx
Latest version: 5.9.4

# @lyo/mobx

A browser-compatible version of [mobx](https://www.npmjs.com/package/mobx) built automatically with [Lyo](https://github.com/bokub/lyo).

[![Version](https://flat.badgen.net/npm/v/@lyo/mobx)](https://www.npmjs.com/package/@lyo/mobx)
[![Build](https://bokub.github.io/lyo/badge-flat.svg)](https://www.npmjs.com/package/@lyo/mobx)
[![Hits](https://data.jsdelivr.com/v1/package/npm/@lyo/mobx/badge)](https://www.jsdelivr.com/package/npm/@lyo/mobx)

## Usage

#### In a browser
```html
<script src="https://cdn.jsdelivr.net/npm/@lyo/mobx"></script>

<script>
  mobx.Reaction(foo, bar, baz);
  mobx.untracked(foo);
  mobx.createAtom(foo, bar, baz);
  mobx.spy(foo);
  mobx.isObservableObject(foo);
  mobx.isBoxedObservable(foo);
  mobx.isObservableArray(foo);
  mobx.ObservableMap(foo, bar, baz);
  mobx.isObservableMap(foo);
  mobx.ObservableSet(foo, bar, baz);
  mobx.isObservableSet(foo);
  mobx.transaction(foo, bar);
  mobx.observable(foo, bar, baz);
  mobx.computed(foo, bar, baz);
  mobx.isObservable(foo);
  mobx.isObservableProp(foo, bar);
  mobx.isComputed(foo);
  mobx.isComputedProp(foo, bar);
  mobx.extendObservable(foo, bar, baz, qux);
  mobx.observe(foo, bar, baz, qux);
  mobx.intercept(foo, bar, baz);
  mobx.autorun(foo, bar);
  mobx.reaction(foo, bar, baz);
  mobx.when(foo, bar, baz);
  mobx.action(foo, bar, baz, qux);
  mobx.isAction(foo);
  mobx.runInAction(foo, bar);
  mobx.keys(foo);
  mobx.values(foo);
  mobx.entries(foo);
  mobx.set(foo, bar, baz);
  mobx.remove(foo, bar);
  mobx.has(foo, bar);
  mobx.get(foo, bar);
  mobx.decorate(foo, bar);
  mobx.configure(foo);
  mobx.onBecomeObserved(foo, bar, baz);
  mobx.onBecomeUnobserved(foo, bar, baz);
  mobx.flow(foo);
  mobx.toJS(foo, bar);
  mobx.trace();
  mobx.getDependencyTree(foo, bar);
  mobx.getObserverTree(foo, bar);
  mobx._resetGlobalState();
  mobx._getGlobalState();
  mobx.getDebugName(foo, bar);
  mobx.getAtom(foo, bar);
  mobx._getAdministration(foo, bar);
  mobx._allowStateChanges(foo, bar);
  mobx._allowStateChangesInsideComputed(foo);
  mobx.isArrayLike(foo);
  mobx._isComputingDerivation();
  mobx.onReactionError(foo);
  mobx._interceptReads(foo, bar, baz);
</script>
```

#### In Node.js

```sh
# Install
npm i @lyo/mobx
```

```js
const mobx = require('@lyo/mobx')

mobx.Reaction(foo, bar, baz);
mobx.untracked(foo);
mobx.createAtom(foo, bar, baz);
mobx.spy(foo);
mobx.isObservableObject(foo);
mobx.isBoxedObservable(foo);
mobx.isObservableArray(foo);
mobx.ObservableMap(foo, bar, baz);
mobx.isObservableMap(foo);
mobx.ObservableSet(foo, bar, baz);
mobx.isObservableSet(foo);
mobx.transaction(foo, bar);
mobx.observable(foo, bar, baz);
mobx.computed(foo, bar, baz);
mobx.isObservable(foo);
mobx.isObservableProp(foo, bar);
mobx.isComputed(foo);
mobx.isComputedProp(foo, bar);
mobx.extendObservable(foo, bar, baz, qux);
mobx.observe(foo, bar, baz, qux);
mobx.intercept(foo, bar, baz);
mobx.autorun(foo, bar);
mobx.reaction(foo, bar, baz);
mobx.when(foo, bar, baz);
mobx.action(foo, bar, baz, qux);
mobx.isAction(foo);
mobx.runInAction(foo, bar);
mobx.keys(foo);
mobx.values(foo);
mobx.entries(foo);
mobx.set(foo, bar, baz);
mobx.remove(foo, bar);
mobx.has(foo, bar);
mobx.get(foo, bar);
mobx.decorate(foo, bar);
mobx.configure(foo);
mobx.onBecomeObserved(foo, bar, baz);
mobx.onBecomeUnobserved(foo, bar, baz);
mobx.flow(foo);
mobx.toJS(foo, bar);
mobx.trace();
mobx.getDependencyTree(foo, bar);
mobx.getObserverTree(foo, bar);
mobx._resetGlobalState();
mobx._getGlobalState();
mobx.getDebugName(foo, bar);
mobx.getAtom(foo, bar);
mobx._getAdministration(foo, bar);
mobx._allowStateChanges(foo, bar);
mobx._allowStateChangesInsideComputed(foo);
mobx.isArrayLike(foo);
mobx._isComputingDerivation();
mobx.onReactionError(foo);
mobx._interceptReads(foo, bar, baz);
```

## Disclaimer

This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.

Use at your own risk