{"action":"created","issue":{"url":"https://api.github.com/repos/oscarhaggerty/Backbone.Sails/issues/4","labels_url":"https://api.github.com/repos/oscarhaggerty/Backbone.Sails/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/oscarhaggerty/Backbone.Sails/issues/4/comments","events_url":"https://api.github.com/repos/oscarhaggerty/Backbone.Sails/issues/4/events","html_url":"https://github.com/oscarhaggerty/Backbone.Sails/issues/4","id":53511610,"number":4,"title":"Watched collection doesn't update","user":{"login":"hardchor","id":307162,"avatar_url":"https://avatars.githubusercontent.com/u/307162?v=3","gravatar_id":"","url":"https://api.github.com/users/hardchor","html_url":"https://github.com/hardchor","followers_url":"https://api.github.com/users/hardchor/followers","following_url":"https://api.github.com/users/hardchor/following{/other_user}","gists_url":"https://api.github.com/users/hardchor/gists{/gist_id}","starred_url":"https://api.github.com/users/hardchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardchor/subscriptions","organizations_url":"https://api.github.com/users/hardchor/orgs","repos_url":"https://api.github.com/users/hardchor/repos","events_url":"https://api.github.com/users/hardchor/events{/privacy}","received_events_url":"https://api.github.com/users/hardchor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-06T12:48:10Z","updated_at":"2015-01-29T18:10:07Z","closed_at":"2015-01-06T23:54:35Z","body":"Hey Oscar (Ian?),\r\n\r\nFirst of all, thanks for such a great plugin and the effort you put into documentation!\r\n\r\nI'm experiencing an issue when updating a fetched (and subscribed) collection (`PersonCollection` containing `PersonModel`). \r\nIf I add another `Person` (via CURL or in a seperate window), `PersonCollection` correctly fires a `\"created\"` event. However, the `PersonCollection` itself is not being updated with the new `Person`. Only when I manually call `personCollection.add(person)` inside the event callback does the `PersonCollection` reflect the update.\r\n\r\nIs this by design? Could I be doing something wrong?\r\n\r\n\r\n```javascript\r\n            var personCollection = new PersonCollection();\r\n\r\n            personCollection.on('created', function (model) {\r\n                // personCollection does not contain the new model yet :(\r\n                // I have to add it manually\r\n                personCollection.add(model);\r\n            });\r\n\r\n            React.render(new (React.createFactory(HomeComponent))({\r\n                collection: personCollection\r\n            }), mountPoint);\r\n\r\n            personCollection.fetch({\r\n                sync: ['socket', 'ajax', 'subscribe', 'set']\r\n            });\r\n```"},"comment":{"url":"https://api.github.com/repos/oscarhaggerty/Backbone.Sails/issues/comments/72074143","html_url":"https://github.com/oscarhaggerty/Backbone.Sails/issues/4#issuecomment-72074143","issue_url":"https://api.github.com/repos/oscarhaggerty/Backbone.Sails/issues/4","id":72074143,"user":{"login":"hardchor","id":307162,"avatar_url":"https://avatars.githubusercontent.com/u/307162?v=3","gravatar_id":"","url":"https://api.github.com/users/hardchor","html_url":"https://github.com/hardchor","followers_url":"https://api.github.com/users/hardchor/followers","following_url":"https://api.github.com/users/hardchor/following{/other_user}","gists_url":"https://api.github.com/users/hardchor/gists{/gist_id}","starred_url":"https://api.github.com/users/hardchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardchor/subscriptions","organizations_url":"https://api.github.com/users/hardchor/orgs","repos_url":"https://api.github.com/users/hardchor/repos","events_url":"https://api.github.com/users/hardchor/events{/privacy}","received_events_url":"https://api.github.com/users/hardchor/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T18:10:06Z","updated_at":"2015-01-29T18:10:06Z","body":"Hi @oscarhaggerty \r\n\r\nJust had time to pick this up again. That coffeescript example you posted would be largely the same in JS (unless I'm mistaken).\r\n\r\nAnyway, what's your thoughts on converting `where` criteria to Backbone collection filters and automatically update collections based on them?"}}