-
Notifications
You must be signed in to change notification settings - Fork 177
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
4.0.x doesn't support Redux DevTools Chrome Extension #196
Comments
This happens to me as well, except in my case I wasn't seeing any error, just that redux-observable actions weren't working when the devtools were included. Also, I noticed redux-immutable-state-invariant complained about how my reducer was mutating my state even though it was not, this is also not happening in version 3.5.2 |
I get this same error with 4.0.x and |
Has anyone been able to figure out where the issue happens in The 4.0.X release had that whole |
When invoking a
You can attempt to repro by cloning this: https://github.com/bjohnso5/angularjs-redux-example/tree/feature/ng-redux-4-bug-report and |
Shit, I just realized what it is. Alright, I'd love some suggestions here. @bjohnso5 the reason for the issue is the new Hmmm... @derrickpelletier you worked a little bit on the provided store feature, do you have any ideas about how to resolve this? |
Hiding the contents of this comment because they were misleading, see below.
Ah, i'll try to dig into this a bit later today or this weekend (away for holidays).
My gut is that the issue comes from the fact that both stores need awareness of the same middleware, and this isn't reflected in the docs right now... For example, here's how i'm using this in production and I have both dev tools, logger, and thunk working (and a working branch of sagas).
So in this case, the ng-redux store is thunk compatible for the purpose of passing actions up to the true store, but the logger and dev tools only exist on the true store. I'll try to make a PR to the readme to document the problem here |
@AntJanus My previous comment is still a relevant problem, but not the issue being discussed here. I was digging through some commits tonight to see where this was introduced. From what I can tell, this PR introduced the bug way back in september: #166 The reason the bug never appeared until now is because |
I have the same problem. Shall i use 3.5.2 version in order to get it fixed? |
@NadiykaS, yeah unfortunately. 4.x only introduces the provideStore functionality, so i don't think you'll miss out on too much. |
Why does the provideStore functionality have to copy the store? If it's just to add in middleware, could we use a dynamic-middleware pattern to allow ng-redux middleware to be added to the store after its creation? |
Try this approach which allows you to create the whole store in a callback: #218 I made it for different purpose but might give you enough control to sort out also this problem. |
Redux DevTools Chrome Extension doesn't work after I upgrade the ng-redux to 4.0.x.
The console shows
Error: Actions must be plain objects. Use custom middleware for async actions.
even though I've already used thethunk
middleware like thisThe ng-redux library works well if I remove the storeEnhancer
[window.__REDUX_DEVTOOLS_EXTENSION__()]
.I can reproduce the issue in the example project(https://github.com/johanzhou8/ng-redux/tree/master/examples/async-immutable) too.
Steps to reproduce the issue:
npm install
npm i [email protected]
$ngReduxProvider.createStoreWith(rootReducer, [thunk], [window.__REDUX_DEVTOOLS_EXTENSION__()]);
npm start
The workaround for me is downgrading to the older version.
npm i [email protected]
.Thanks.
The text was updated successfully, but these errors were encountered: