0.3.0 • Published 3 years ago

@cpro-js/react-app-state v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@cpro-js/react-app-state

Basically a re-export of state management utilities powered by mobx to enforce versions in our projects.

Installation

$ yarn add @cpro-js/react-app-state

Exports

See API-Reference from mobx for usage & description of the following exports:

// config
import { IPromiseBasedObservable } from "mobx-utils";

export { configure } from "mobx";

// Creating observables
export { makeAutoObservable, makeObservable, observable, computed } from "mobx";

// Actions
export { action, runInAction, flow, flowResult } from "mobx";

// Collection utilities
export { values, keys, entries, get, has, set, remove } from "mobx";

// Reactions
export { autorun, reaction, when } from "mobx";

// react
export { observer, Observer, disposeOnUnmount } from "mobx-react";

// utilies
export { toJS } from "mobx";

// debug, see https://mobx.js.org/analyzing-reactivity.html
export { trace } from "mobx";

// utils
export { fromPromise, computedFn } from "mobx-utils";
export type ObservablePromise<T> = IPromiseBasedObservable<T>;