manaflair / redux-batch

Enhance your Redux store to support batched actions
171 stars 12 forks source link

currentListeners is not defined #7

Closed sumitpal29 closed 7 years ago

sumitpal29 commented 7 years ago

Hi, In your reduxBatch function, the declaration let currentListeners = currentListeners; is throwing error. I think it should be let currentListeners = nextListeners; Please have a look and do the changes if required.

Thanks.

arcanis commented 7 years ago

Hm, you're right. Fortunately, it initializes currentListener to undefined, which seems to be the right initialization value. Does it break something on your side?