redux-observable — Medium

  • When you dispatch a function, it returns a subscription object which can be used to cancel the async action.
  • For ergonomics, the actions observable has an `ofType` operator to allow for cleaner filtering of specific types of actions dispatched.
  • // To cancel the AJAX request you can dispatch an abort action // from anywhere in your app dispatch({ type: ‘FETCH_USER_ABORT’ }); // or if it happens to be more ergonomic, just unsubscribe // directly.

Read the full article, click here.


@BenLesh: “Very proud to show off what @_jayphelps and I have been using with #RxJS and #Redux in our @reactjs apps at Netflix:”


Created by Jay Phelps and myself for use on our projects at Netflix, redux-observable is middleware for redux that is in…


redux-observable — Medium