@zajno/common-mobx
v2.2.0
Published
Zajno's re-usable utilities for JS/TS projects using MobX
Readme
Zajno's Toolbox – MobX
Moved from Zajno/common-mobx. Now maintained at idudinov/common-utils.
This library is an extension for @zajno/common, which adds more tools but based on MobX library.
All runtime dependencies are peer.
Contents
Localization – attempt to have another simple runtime i18n manager
ViewModels – useful for MVVM pattern
Structures for caching & observing:
PromiseCacheObservable— a thinPromiseCachepreset wired to a mobx storage provider (also exported standalone asmobxStorageProvider, for composing custom presets)TransitionObserver– neat wrapper of mobx'sreactionand various extends to
@zajno/common's tools to make them MobX-observable.
Usage
ESM-only as of 2.1.0 (no CJS build). Subpath-only imports (no root import) by design, for tree-shaking. Requires Node >=20.
Install:
npm i @zajno/common-mobxSee usage & distribution notes from @zajno/common's README.
