-
Notifications
You must be signed in to change notification settings - Fork 1k
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
No Actions when Store is composed with redux-replicate. #93
Comments
Hey @Clubdesign, Not sure if that is the reason, but you're mixing old redux api with the new one. So if you use an old version of redux, it will be: const create = compose(replication, window.devToolsExtension())(createStore);
const store = create(combineReducers(reducers), initialState); Or for the new one: const enhancer = compose(replication, window.devToolsExtension());
const store = createStore(combineReducers(reducers), initialState, enhancer); |
Hey @zalmoxisus , thanks for the suggest, but it still isn`t working, the above example is directly from redux-replicate, in my code i am doing it like this:
|
That seems right. Don't you get any warnings/errors in the console? Does it work with vanilla Redux Devtools? |
Yes it works with Vanilla, and no Errors or anything elese, just the @init State. As said, the State keeps updating, but the dispatched action are not shown, see here: |
I guess you mean redux logger middleware. By vanilla Redux DevTools I mean https://github.com/gaearon/redux-devtools. Please try to implement that instead of the extension, if it will steel not work, then more likely the problem is somewhere in |
Nono, i mean the normal tools, i had them running correctly before i tried the extension. Everything is working. |
That's interesting. I will try it. |
See: http://d.pr/i/13lXR/4PboxiX3 Is just replace everything back to Vanilla DevTools:
|
Could you please try to add store.subscribe(() => { console.log(store.getState()); }); and check if you get the new value every time? If not then the problem should be investigated inside |
Yes, the state is logged with every action when subscribed. |
Thanks for the details. Yes, due to the fact that it replaces the reducer the extension don't get the new store. I'll investigate it. |
Ok, thanks @zalmoxisus ! |
Sorry @zalmoxisus , i tried that already, but then the replication fails completly. But i can confirm, that the DevTools Work with this setup. But it doesn't help as the replcation is failing ;) |
Well, the problem is that To get it work, you can install |
Thx @zalmoxisus, will try it |
Can confirm it works with the current latest version @zalmoxisus. |
Hey,
great work on this tool, but i am experiencing problems when the store is composed with redux-replicate before created, i don`t know where the root of the problem is, the only thin i know is: I deactivate the Replication, all actions are displayed correctly. I activate it the DevTools just get the init action and no more after that. The State shown by the init function is still updated though.
Even if is use the suggested implementation from redux-replicate:
Can somebody confirm this?
The text was updated successfully, but these errors were encountered: