-
Notifications
You must be signed in to change notification settings - Fork 37
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
batchActions causing a render after each action, rather than after the completion of all three #24
Comments
Just to be very clear, my intention in using |
@dgaitsgo From the sound of it, this library does exactly what you're hoping to achieve. Can you send more context of how you set up the store with your reducer? If you are using |
Okay, I've isolated the issue. The code above fails if it is in the callback of a Promise.
but, why? |
I'm sorry I can't make a more generic example to reproduce the error, but this is as simple as I can get. A promise to wait for :
|
@dgaitsgo That is truly perplexing. Are your |
I reproduced the problem,in my demo project when I minus, it render one time; but when i add , it render four time; it occur in Promise and SetTimeout; |
I have the same feeling. Looking at |
Can confirm - using |
This is my call with
batchActions
I've put a
console.log
in each of my reducers. The app crashes before the second one prints out as, since the data is intimately connected, they are mismatched when only one part of the store refreshes. The odd thing is, is this worked as expected before some refactoring. I've tried both callingenableBatching
on myrootReducer
and without, and same result.Any ideas?
The text was updated successfully, but these errors were encountered: