{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/angularfire/issues/848","repository_url":"https://api.github.com/repos/firebase/angularfire","labels_url":"https://api.github.com/repos/firebase/angularfire/issues/848/labels{/name}","comments_url":"https://api.github.com/repos/firebase/angularfire/issues/848/comments","events_url":"https://api.github.com/repos/firebase/angularfire/issues/848/events","html_url":"https://github.com/firebase/angularfire/issues/848","id":173641560,"number":848,"title":"$loaded fires but the $value is still null sometimes","user":{"login":"armensg","id":6030955,"avatar_url":"https://avatars.githubusercontent.com/u/6030955?v=3","gravatar_id":"","url":"https://api.github.com/users/armensg","html_url":"https://github.com/armensg","followers_url":"https://api.github.com/users/armensg/followers","following_url":"https://api.github.com/users/armensg/following{/other_user}","gists_url":"https://api.github.com/users/armensg/gists{/gist_id}","starred_url":"https://api.github.com/users/armensg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armensg/subscriptions","organizations_url":"https://api.github.com/users/armensg/orgs","repos_url":"https://api.github.com/users/armensg/repos","events_url":"https://api.github.com/users/armensg/events{/privacy}","received_events_url":"https://api.github.com/users/armensg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-28T11:22:21Z","updated_at":"2016-08-29T16:15:28Z","closed_at":"2016-08-29T16:15:28Z","body":"I am trying to use $firebaseObject().$loaded() promise but it's not behaving as I expect so want to make sure I'm using it correctly. it seems that sometimes the value I get back is null and sometimes its not. Shouldnt the value always be there if loaded() is resolved... ?\r\n\r\n ```\r\n           getLastUpdate: function(google_place_id, sortBy, cutOffTime) {\r\n                var defered = $q.defer();\r\n                var latestUpdateId = $firebaseObject(lastUpdates.child(google_place_id).orderByChild(sortBy).startAt(cutOffTime));\r\n\r\n                latestUpdateId.$loaded(\r\n                    function(update_id){\r\n                        console.log(\"Firebase object of latest update ID loaded ...\", update_id);\r\n                        if (update_id.$value !== null){ // sometimes this has a value and sometimes it doesnt ...\r\n                            console.log(\"Now get the actual object\");\r\n                            var u = $firebaseObject(updates.child(update_id.google_place_id).child(update_id.update_id));\r\n                            u.$loaded(function(data) {\r\n                                defered.resolve(data);\r\n                            }, function(error){\r\n                                console.error(\"Error:\", error);\r\n                                defered.reject(error);\r\n                            });\r\n                        }\r\n                    }, function(er){\r\n                        console.log(er);\r\n                });\r\n\r\n                return defered.promise;\r\n            },\r\n```"}}
{"actor":{"display_login":"katowulf"}}