Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@devcorp-libs/store-util

spiotr121112.0.2TypeScript support: included

Utility for @nxrx/store to handle subscriptions more effectively

readme

StoreUtil

Utility for @nxrx/store to handle subscriptions more effectively

Usage

@Component({
  // ...
})
export class CategoriesManagerComponent {

  public data$: Observable<any>;

  constructor(private store: Store<any>) {
    this.data$ = DclStoreUtil.select(this.store, selector);
    // or
    this.data$ = DclStoreUtil.select(this.store, selector, this.killerSubject$);
  }

}