Skip to content
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

Fixes #461 - Copy listeners array, so subscribes can't affect the loop. #462

Merged

Conversation

arian
Copy link
Contributor

@arian arian commented Aug 11, 2015

Unsubscribing during a dispatch would change the listeners array.
However that causes the next listener not to fire.

Fixes #461

…the loop.

Unsubscribing during a dispatch would change the listeners array.
However that causes the next listener not to fire.
gaearon added a commit that referenced this pull request Aug 11, 2015
Fixes #461 - Copy listeners array, so subscribes can't affect the loop.
@gaearon gaearon merged commit d594232 into reduxjs:breaking-changes-1.0 Aug 11, 2015
@gaearon
Copy link
Contributor

gaearon commented Aug 11, 2015

Awesome, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants