How to use the @reactivex/rxjs.Observable.combineLatestObj function in @reactivex/rxjs

To help you get started, we’ve selected a few @reactivex/rxjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github giltig / rxfrf / src / shared / stores / counterStore.js View on Github external
/* ========================== handlers ====================================== */

export const increaseCount =
  Observable.of(() => {
    dispatch(Actions.COUNTER_INCREASED)
  })

export const decreaseCount =
  Observable.of(() => {
    dispatch(Actions.COUNTER_DECREASED)
  })

/* ======================== all together ==================================== */

export default
  Observable
    .combineLatestObj({count, increaseCount, decreaseCount})