-
Notifications
You must be signed in to change notification settings - Fork 87
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
Collections are zero-length inside $then #154
Comments
I'll take a look at it, can you tell if this a browser specific issue? if so against which browser are you running your code? |
I'm experiencing the same bug. The |
I do not seem to be able to reproduce the error, could you share some more information about the code that triggers it? any special unpack implementation? A gist would be even better... |
@iobaixas here's a test case that reproduces the problem. |
Thanks! that did it! I'm releasing a fix in a moment. On a side note, about the exampled you posted: Be careful when using console log, if you pass it an object (or an array in this case), it keeps the output updated with the content of the object (is not a snapshot). Thats why console.log(array) and console.log(array.length) did not match and not because of the bug. If you instead where to use console.log(array[0]) and console.log(array.length) then the outputs would be consistent (should print undefined and 0). |
When accessing a collection from inside $then, the array length of the collection is zero regardless of the data.
The text was updated successfully, but these errors were encountered: