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

Devtools seem to break reduxs observable support #274

Closed
micha149 opened this issue Apr 22, 2016 · 1 comment · Fixed by #275
Closed

Devtools seem to break reduxs observable support #274

micha149 opened this issue Apr 22, 2016 · 1 comment · Fixed by #275

Comments

@micha149
Copy link
Contributor

Redux implemented support for observables since v3.5.0. When I attach an observable to the store, I will receive the devtools state instead of my application state.

A quick example:

import {Observable} from 'rxjs';
import {createStore, compose, applyMiddleware} from 'redux';
import thunk from 'redux-thunk';

const store = createStore(rootReducer, compose(
    applyMiddleware(thunk),
    window["devToolsExtension"] ? window["devToolsExtension"]() : f => f
));

Observable.from(store).map(state => console.log(state));

Will log something like Object {monitorState: Object, actionsById: Object, nextActionId: 1, stagedActionIds: Array[1], skippedActionIds: Array[0]…} when the store updates.

When I disable the redux devtools in Chrome, I get the expected state instance.

@gaearon
Copy link
Contributor

gaearon commented May 9, 2016

Out in 3.3.0.

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

Successfully merging a pull request may close this issue.

2 participants