{"action":"created","issue":{"url":"https://api.github.com/repos/invertase/react-native-firebase/issues/171","repository_url":"https://api.github.com/repos/invertase/react-native-firebase","labels_url":"https://api.github.com/repos/invertase/react-native-firebase/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/invertase/react-native-firebase/issues/171/comments","events_url":"https://api.github.com/repos/invertase/react-native-firebase/issues/171/events","html_url":"https://github.com/invertase/react-native-firebase/issues/171","id":236072734,"number":171,"title":"[Android] This block of code in Utils.buildArray() is causing freeze","user":{"login":"SekRanger","id":1477612,"avatar_url":"https://avatars1.githubusercontent.com/u/1477612?v=3","gravatar_id":"","url":"https://api.github.com/users/SekRanger","html_url":"https://github.com/SekRanger","followers_url":"https://api.github.com/users/SekRanger/followers","following_url":"https://api.github.com/users/SekRanger/following{/other_user}","gists_url":"https://api.github.com/users/SekRanger/gists{/gist_id}","starred_url":"https://api.github.com/users/SekRanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SekRanger/subscriptions","organizations_url":"https://api.github.com/users/SekRanger/orgs","repos_url":"https://api.github.com/users/SekRanger/repos","events_url":"https://api.github.com/users/SekRanger/events{/privacy}","received_events_url":"https://api.github.com/users/SekRanger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-15T04:15:48Z","updated_at":"2017-06-15T05:42:54Z","closed_at":null,"body":"I am using react-native-firebase 1.1.0\r\n\r\n```java\r\nif (key > expectedKey) {\r\n  for (long i = expectedKey; i < key; i++) {\r\n    array.pushNull();\r\n  }\r\n  expectedKey = key;\r\n}\r\n```\r\n\r\nBut, since `long key = Long.parseLong(child.getKey());` and my key is 15 digits++ long. This block is practically cannot be done."},"comment":{"url":"https://api.github.com/repos/invertase/react-native-firebase/issues/comments/308634491","html_url":"https://github.com/invertase/react-native-firebase/issues/171#issuecomment-308634491","issue_url":"https://api.github.com/repos/invertase/react-native-firebase/issues/171","id":308634491,"user":{"login":"Salakar","id":5347038,"avatar_url":"https://avatars3.githubusercontent.com/u/5347038?v=3","gravatar_id":"","url":"https://api.github.com/users/Salakar","html_url":"https://github.com/Salakar","followers_url":"https://api.github.com/users/Salakar/followers","following_url":"https://api.github.com/users/Salakar/following{/other_user}","gists_url":"https://api.github.com/users/Salakar/gists{/gist_id}","starred_url":"https://api.github.com/users/Salakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Salakar/subscriptions","organizations_url":"https://api.github.com/users/Salakar/orgs","repos_url":"https://api.github.com/users/Salakar/repos","events_url":"https://api.github.com/users/Salakar/events{/privacy}","received_events_url":"https://api.github.com/users/Salakar/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T05:42:54Z","updated_at":"2017-06-15T05:42:54Z","body":"Someone mentioned this hang before but we couldn't find the source, but now we know 👍 \r\n\r\nHowever, the firebase web sdk and ios sdk do this automatically for you and the android one does not - which is why we added this functionality - to keep them all in the same format and to pass consistency tests this conversion needs to remain in the library - so it needs fixing rather than removing 🙈 \r\n\r\nCould you run the same query on the web sdk or ios sdk and let me know the results - do the official ones hang on this? Whats the format they return - object or array?"}}
{"actor":{"display_login":"Salakar"}}