mobx-disposer-util
v0.0.5
Published
[![npm](https://img.shields.io/npm/v/mobx-disposer-util)](https://www.npmjs.com/package/mobx-disposer-util) [![license](https://img.shields.io/npm/l/disposer-util)](https://github.com/js2me/disposer-util/blob/master/LICENSE)
Downloads
70
Readme
disposer-util
Disposer class and Disposable interface
usage
import { Disposable, Disposer } from "disposer-util";
export class SomeModel implements Disposable {
private disposer = new Disposer();
constructor(){
this.disposer.add(
reaction(() => this.someProp, console.log)
);
}
dispose() {
this.disposer.dispose();
}
}