{"action":"closed","issue":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/317","repository_url":"https://api.github.com/repos/jagi/meteor-astronomy","labels_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/317/comments","events_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/317/events","html_url":"https://github.com/jagi/meteor-astronomy/issues/317","id":144317148,"number":317,"title":"Strange conflict with ViewModel and Astronomy","user":{"login":"arggh","id":17210302,"avatar_url":"https://avatars.githubusercontent.com/u/17210302?v=3","gravatar_id":"","url":"https://api.github.com/users/arggh","html_url":"https://github.com/arggh","followers_url":"https://api.github.com/users/arggh/followers","following_url":"https://api.github.com/users/arggh/following{/other_user}","gists_url":"https://api.github.com/users/arggh/gists{/gist_id}","starred_url":"https://api.github.com/users/arggh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arggh/subscriptions","organizations_url":"https://api.github.com/users/arggh/orgs","repos_url":"https://api.github.com/users/arggh/repos","events_url":"https://api.github.com/users/arggh/events{/privacy}","received_events_url":"https://api.github.com/users/arggh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-29T16:28:18Z","updated_at":"2016-04-02T22:29:56Z","closed_at":"2016-04-02T22:29:56Z","body":"I'm using **Astronomy** (with sort, softremove and timestamp) and **manuel:viewmodel** in a project together. I like both, but I've had a few hiccups trying to use them together.\r\n\r\nI came upon a weird problem, where my reactively created ViewModel's _click-bindings_ wouldn't register when adding new documents to a collection, until I refreshed the page.\r\n\r\nA repro of the issue can be found here: [viewmodel-click-bind](https://github.com/arggh/viewmodel-click-bind\r\n)\r\nIf you just add a few lists and try to select between them, you will see what I mean. \r\n\r\nAccording to ViewModel's creator, this is caused by how Astronomy manipulates the collection/documents. A simple quickfix is to `.fetch()` the documents before iterating, which might help to pinpoint the actual cause.\r\n\r\nI would love to understand what is wrong here and how to fix it.\r\n\r\nIdeas?"}}