Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
after upgrading to 0.8.2 Collections are empty in helper method after an insert #2275
I'm running into weird behavior after upgrading to 0.8.2. After inserting an object into a Collection, a helper method tries to find that object in the Collection and display it in a template.
0.8.1.3 works fine. 0.8.2 has an empty Collection in the helper method.
Clicking the button will add an object into the Collection and it will get displayed in 0.8.1.3. In 0.8.2 and devel, errors are thrown because the Collection is empty.
I narrowed it down to commit df2820f.
Im experiencing the same behavior in a project of my own. I can recreate the behavior in the sample code by @calculon0 too.
You can see this in my sample project here https://github.com/ramishka/meteor-collection-test