You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 :)
The observableMiddleware accepts a
next
function, but redux'sapplyMiddleware
expects a function like that accepts{dispatch: Function, getState: Function}
and returns a function like redux-rx'sobservableMiddleware
.Are users expected to wrap observableMiddleware themselves (e.g.
const realMiddleware = () => observableMiddleware;
)?Any documentation about its usage would be appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: