{"action":"created","issue":{"url":"https://api.github.com/repos/webix-hub/webix-meteor-data/issues/4","labels_url":"https://api.github.com/repos/webix-hub/webix-meteor-data/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/webix-hub/webix-meteor-data/issues/4/comments","events_url":"https://api.github.com/repos/webix-hub/webix-meteor-data/issues/4/events","html_url":"https://github.com/webix-hub/webix-meteor-data/issues/4","id":58764818,"number":4,"title":"observables are never stopped","user":{"login":"rubenlagatie","id":3558417,"avatar_url":"https://avatars.githubusercontent.com/u/3558417?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenlagatie","html_url":"https://github.com/rubenlagatie","followers_url":"https://api.github.com/users/rubenlagatie/followers","following_url":"https://api.github.com/users/rubenlagatie/following{/other_user}","gists_url":"https://api.github.com/users/rubenlagatie/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenlagatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenlagatie/subscriptions","organizations_url":"https://api.github.com/users/rubenlagatie/orgs","repos_url":"https://api.github.com/users/rubenlagatie/repos","events_url":"https://api.github.com/users/rubenlagatie/events{/privacy}","received_events_url":"https://api.github.com/users/rubenlagatie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-24T16:38:22Z","updated_at":"2015-02-25T20:13:07Z","closed_at":null,"body":"Hi Maksim\r\n\r\nI'm using your meteor data proxy, but it seems the query handle created by cursor.observe is not stopped when you call load on the same object again (e.g. to load other data in the component).\r\nFrom the meteor docs:\r\n\"observe returns a live query handle, which is an object with a stop method. Call stop with no arguments to stop calling the callback functions and tear down the query. The query will run forever until you call this.\"\r\nAs a result, when the original data changes, the observable still tries to update the view, but its data has changed, resulting in an error.\r\n\r\nI believe this could be resolved by storing the returned object from this.cusor.observe in this.query and before creating a new query calling this.query.stop() if this.query is already set.\r\n\r\nI'm not sure destroying the webix object cleans this up either, it might result in memory problems."},"comment":{"url":"https://api.github.com/repos/webix-hub/webix-meteor-data/issues/comments/76045974","html_url":"https://github.com/webix-hub/webix-meteor-data/issues/4#issuecomment-76045974","issue_url":"https://api.github.com/repos/webix-hub/webix-meteor-data/issues/4","id":76045974,"user":{"login":"mkozhukh","id":2178224,"avatar_url":"https://avatars.githubusercontent.com/u/2178224?v=3","gravatar_id":"","url":"https://api.github.com/users/mkozhukh","html_url":"https://github.com/mkozhukh","followers_url":"https://api.github.com/users/mkozhukh/followers","following_url":"https://api.github.com/users/mkozhukh/following{/other_user}","gists_url":"https://api.github.com/users/mkozhukh/gists{/gist_id}","starred_url":"https://api.github.com/users/mkozhukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkozhukh/subscriptions","organizations_url":"https://api.github.com/users/mkozhukh/orgs","repos_url":"https://api.github.com/users/mkozhukh/repos","events_url":"https://api.github.com/users/mkozhukh/events{/privacy}","received_events_url":"https://api.github.com/users/mkozhukh/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T20:13:07Z","updated_at":"2015-02-25T20:13:07Z","body":"Yep, I see the issue\r\nIt will be fixed in oncoming Webix 2.3. View object will destroy the proxy when it is reloaded with new data or when view itself is destroyed."}}