Skip to content
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

observableMiddleware usage? #10

Open
matthewwithanm opened this issue Sep 1, 2015 · 1 comment
Open

observableMiddleware usage? #10

matthewwithanm opened this issue Sep 1, 2015 · 1 comment

Comments

@matthewwithanm
Copy link
Contributor

The observableMiddleware accepts a next function, but redux's applyMiddleware expects a function like that accepts {dispatch: Function, getState: Function} and returns a function like redux-rx's observableMiddleware.

Are users expected to wrap observableMiddleware themselves (e.g. const realMiddleware = () => observableMiddleware;)?

Any documentation about its usage would be appreciated.

Thanks!

@acdlite
Copy link
Owner

acdlite commented Sep 1, 2015

Good catch. You're right — the observable middleware predates the new, updated middleware signature required by applyMiddleware(). I'd accept a PR to fix this, or I'll get to it soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants