New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Adapters): Adds support for Epic input/output adapters. #85

Merged
merged 1 commit into from Aug 1, 2016

Conversation

Projects
None yet
2 participants
@jayphelps
Member

jayphelps commented Jul 30, 2016

This allows us to support RxJS v4 via https://github.com/redux-observable/redux-observable-adapter-rxjs-v4

An adapter is an object that has two properties, input and output.

const adapter = {
  input: action$ => convertItSomeHow(action$),
  output: action$ => convertItSomeHow(action$)
};

The input function is provided the original v5 ActionsObservable and the result you return is then provided to all of your Epics.

The output function is invoked for each Epic, provided with the output of that Epic. The result you return is expected to be RxJS v5 compliant; anything that Observable.from works on so that includes stream[Symbol.observable]().

We strongly believe people should switch to v5, but we realize that not everyone has the immediate cycles to do so, or have issues against software labeled as "beta"--though it's funny they would still use redux-observable (or similar middleware) which is far more unstable than v5 is.

Cc/ @blesh @BerkeleyTrue

@benlesh benlesh merged commit a662cdf into master Aug 1, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@jayphelps

This comment has been minimized.

Member

jayphelps commented Aug 1, 2016

Published as v0.9.0

@jayphelps jayphelps deleted the adapters branch Aug 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment