{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/reactfire/issues/49","labels_url":"https://api.github.com/repos/firebase/reactfire/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/firebase/reactfire/issues/49/comments","events_url":"https://api.github.com/repos/firebase/reactfire/issues/49/events","html_url":"https://github.com/firebase/reactfire/issues/49","id":96254829,"number":49,"title":"Upgrading to 0.5.0 throws: this.state.newsItems is already bound to a Firebase reference","user":{"login":"matiaslarsson","id":437760,"avatar_url":"https://avatars.githubusercontent.com/u/437760?v=3","gravatar_id":"","url":"https://api.github.com/users/matiaslarsson","html_url":"https://github.com/matiaslarsson","followers_url":"https://api.github.com/users/matiaslarsson/followers","following_url":"https://api.github.com/users/matiaslarsson/following{/other_user}","gists_url":"https://api.github.com/users/matiaslarsson/gists{/gist_id}","starred_url":"https://api.github.com/users/matiaslarsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matiaslarsson/subscriptions","organizations_url":"https://api.github.com/users/matiaslarsson/orgs","repos_url":"https://api.github.com/users/matiaslarsson/repos","events_url":"https://api.github.com/users/matiaslarsson/events{/privacy}","received_events_url":"https://api.github.com/users/matiaslarsson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/firebase/reactfire/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-21T08:06:04Z","updated_at":"2015-07-21T18:44:33Z","closed_at":"2015-07-21T18:44:33Z","body":"So I'm probably doing something wrong? In 0.4.0 the code below worked fine when filtering a news list by year but now Reactfire is complaining that newsItems is already bound to a Firebase reference.\r\n\r\n```\r\ncomponentDidMount: function() { // INITIAL LOAD\r\n    this.getNewsList(this.props.query.year);\r\n},\r\n\t\r\ncomponentWillReceiveProps: function (newProps) { // FILTERING\r\n    this.getNewsList(newProps.query.year);\r\n},\r\n\r\ngetNewsList: function(filterYear) {\r\n    var newsItemsRef = this.firebaseRefs[\"newsItems\"] || new Firebase(\"https://XXXXXXXXXX.firebaseio.com/news\");\r\n\t\t\r\n    if(filterYear) {\r\n        this.bindAsObject(newsItemsRef.orderByChild(\"_year\").equalTo(parseInt(filterYear)), \"newsItems\");\t\r\n    }\r\n    else {\r\n        this.bindAsObject(newsItemsRef.orderByPriority(), \"newsItems\");\r\n    }\t\r\n}\r\n```\r\n\r\nThe two examples you have (Todo and Comments) never refresh/filter an existing array/object (only updating or deleting from it) so I'm wondering if you can point me in the right direction? Am I supposed to unbind the list before refreshing it? (This will make the list flash to empty before it's filled, something I'd like to avoid)\r\n\r\n```\r\ncomponentWillReceiveProps: function (newProps) { // FILTERING\r\n    this.unbind(\"newsItems\");\r\n    this.getNewsList(newProps.query.year);\r\n},\r\n```"}}