2.0.0 • Published 9 months ago

disposer-util v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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();
  }
}
2.0.0

9 months ago

1.0.12

12 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago