-
Notifications
You must be signed in to change notification settings - Fork 12
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
Doesn't seem to be calling connect after actions are batched? #1
Comments
Hm that's weird, I just checked and listeners seem to be correctly called, |
Excuse the off topic @colbycheeze - |
Thanks, let me know if it works for you :) I've been using it on a project of mine with success (cf https://github.com/manaflair/todo-demo for a small demo project that shows how to use it), but sometimes subtle differences in environments (or dependencies updates) can break things. I hope it will be fine! |
Has this issue been resolved? I think I am still seeing it. Edit: To clarify, |
Would you happen to have a minimal testcase I could use to reproduce the issue? I haven't yet experienced this bug myself, so it would definitely help. If not, I'll try to make one on my side later this week. |
I've tried the following code, and it seemed to work fine, can you check on your end? let redux = require('redux');
let reduxBatch = require('@manaflair/redux-batch').reduxBatch;
let store = redux.createStore((state = {}, action) => {
console.log(action);
return state;
}, reduxBatch);
store.subscribe(state => {
console.log('been notified!');
});
store.dispatch({ type: 1 });
store.dispatch([ { type: 1 }, { type: 2 } ]);
If it does, then I'll need some guidance to reproduce the exact issue. If it doesn't, please tell me which version of redux and redux-batch you're currently using (yarn list / npm list should give you this information). |
Yea by the looks of it, it should work. Perhaps it's having issues in combination with redux-saga. I'll try to find some time to investigate. We switched to redux-batched-action for now. |
I have fixed an edge-case issue that could be the cause of the behaviour you've experienced, but without test case it's hard for me to be sure (cf 8c17160). If you happen to try again, let me know if it works better with the release 0.0.3 :) I'll close this issue for the time being, but feel free to reopen it if it's not resolved. |
Thanks for looking into it! |
Bad news: I believe the bug's still there. Good news: I have a testcase \o/ cf #4 |
I just released a |
Not sure exactly what is happening, but none of the components update their props after a set of batched actions are dispatched. The store has all of the updated data, but not the components.
This happens with arrays passed OR even normal dispatches after hooking up the reduxBatch middleware via
The text was updated successfully, but these errors were encountered: