Closed pdolega closed 8 years ago
I had this issue too. I'm not sure why, but when I had multiple setStates
within a given store handler for an action, and then another action for that store is called also invoking setState
, it would error. The last action didn't need to emit a change so I made it directly mutate state returning false. It is now working for me. I put a breakpoint at line 50 in AltStore.js to watch each action invoking a push to find the culprit.
49 this.emitChange = function () {
50 return _this.transmitter.push(output(_this.state));
// watch _this.displayName and look back in the stack to the Dispatcher to find the action
51 };
Hope this helps.
Removed this error in 0.18.3
I just migrated to version 0.18.2 (same code worked perfectly on 0.17.9). I got following code:
It worked fine before but now in this line:
this.setState(state);
I am getting exception from following method (below, taken fromAlt
sources):Message saying:
Cannot push while pushing
Any ideas what I am doing wrong ?