Skip to content

store provided to middleware doesn't implement Symbol.observable #1833

@jayphelps

Description

@jayphelps

https://github.com/reactjs/redux/blob/master/src/applyMiddleware.js#L25-L29

Because it isn't a real store, this can cause issues with middleware that need some of the real store's features. Particularly the one we care about right now is the Symbol.observable interop. We need the ability to receive a stream of state changes in redux-observable

I imagine the reason for providing a mock store is to not bleed abstractions like replaceReducer right? Any objections to including the Symbol.observable interop in that mock store too? (or just not mocking it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions