-
Notifications
You must be signed in to change notification settings - Fork 2.3k
.each() synchronization question #513
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
Comments
It's definitely a bug, the reduce implementation in 2.x is notoriously complicated and each delegates to it as well hence it is affected. The implementation has been redone in 3.x and it shouldn't have this bug. If this is critical for you I can make a patch for 2.9.13. |
Thanks for getting back super fast. Right now we are using a work around by chaining a |
Fix is in 2.9.13 release just published to npm. 3.x will be released probably 1-3 weeks from now. |
Cool, just verified the issue get fixed. Thanks a lot! |
We encountered the following synchronization problem while using
.each()
. We couldn't figure out if it is intentionally design like this or a bug based on the documentation, so would like to get any insight from you guys:It seems like the function get executed synchronously. The same problem happens to
.filter()
function too. In the contrary , the following snippet get executed expectedly:The text was updated successfully, but these errors were encountered: