@cpro-js/react-app-state
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@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>;

Readme

Keywords

none

Package Sidebar

Install

npm i @cpro-js/react-app-state

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

9.19 kB

Total Files

9

Last publish

Collaborators

  • texttechne
  • zinserjan