{"action":"created","issue":{"url":"https://api.github.com/repos/riot/riot/issues/1983","repository_url":"https://api.github.com/repos/riot/riot","labels_url":"https://api.github.com/repos/riot/riot/issues/1983/labels{/name}","comments_url":"https://api.github.com/repos/riot/riot/issues/1983/comments","events_url":"https://api.github.com/repos/riot/riot/issues/1983/events","html_url":"https://github.com/riot/riot/issues/1983","id":177197653,"number":1983,"title":"Pathological looping behavior with shared references","user":{"login":"asthasr","id":466533,"avatar_url":"https://avatars.githubusercontent.com/u/466533?v=3","gravatar_id":"","url":"https://api.github.com/users/asthasr","html_url":"https://github.com/asthasr","followers_url":"https://api.github.com/users/asthasr/followers","following_url":"https://api.github.com/users/asthasr/following{/other_user}","gists_url":"https://api.github.com/users/asthasr/gists{/gist_id}","starred_url":"https://api.github.com/users/asthasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asthasr/subscriptions","organizations_url":"https://api.github.com/users/asthasr/orgs","repos_url":"https://api.github.com/users/asthasr/repos","events_url":"https://api.github.com/users/asthasr/events{/privacy}","received_events_url":"https://api.github.com/users/asthasr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/riot/riot/labels/answered","name":"answered","color":"000000"},{"url":"https://api.github.com/repos/riot/riot/labels/question","name":"question","color":"fbca04"},{"url":"https://api.github.com/repos/riot/riot/labels/wontfix","name":"wontfix","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-15T14:47:25Z","updated_at":"2016-09-17T22:00:14Z","closed_at":"2016-09-17T10:23:05Z","body":"1. Describe your issue:\r\n\r\n    I had a truly obnoxious bug while displaying a list that gets modified via various user events. It was always showing only one entry in the list, despite the size of the array growing. It turned out that I was accidentally sending the same object reference into the array, but the iteration behavior of Riot seems to be pathological in this case, showing only one instance of the object (and behaving erratically in the case of mixed arrays).\r\n\r\n2. Can you reproduce the issue?\r\n\r\n    [Yes.](http://plnkr.co/edit/0iMvQDLH3peRX1BBL8dY?p=preview) Note that the base case features only the duplicated object references (`{name: \"foo\"}`), while there is a commented-out line that will illustrate the problem when the array is mixed between duplicated and unduplicated object references.\r\n\r\n3. On which browser/OS does the issue appear?\r\n\r\n    I'm using Chrome on Mac OS X.\r\n\r\n4. Which version of Riot does it affect?\r\n\r\n    2.5\r\n\r\n5. How would you tag this issue?\r\n\r\n  - [ ] Question\r\n  - [x] Bug\r\n  - [ ] Discussion\r\n  - [ ] Feature request\r\n  - [ ] Tip\r\n  - [ ] Enhancement\r\n  - [ ] Performance\r\n"},"comment":{"url":"https://api.github.com/repos/riot/riot/issues/comments/247810671","html_url":"https://github.com/riot/riot/issues/1983#issuecomment-247810671","issue_url":"https://api.github.com/repos/riot/riot/issues/1983","id":247810671,"user":{"login":"asthasr","id":466533,"avatar_url":"https://avatars.githubusercontent.com/u/466533?v=3","gravatar_id":"","url":"https://api.github.com/users/asthasr","html_url":"https://github.com/asthasr","followers_url":"https://api.github.com/users/asthasr/followers","following_url":"https://api.github.com/users/asthasr/following{/other_user}","gists_url":"https://api.github.com/users/asthasr/gists{/gist_id}","starred_url":"https://api.github.com/users/asthasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asthasr/subscriptions","organizations_url":"https://api.github.com/users/asthasr/orgs","repos_url":"https://api.github.com/users/asthasr/repos","events_url":"https://api.github.com/users/asthasr/events{/privacy}","received_events_url":"https://api.github.com/users/asthasr/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T22:00:14Z","updated_at":"2016-09-17T22:00:14Z","body":"Yes, it was an error in my code originally, which would have been easy to fix without the obfuscation of the reordering behavior. *At least* a warning should be thrown, since Riot can't handle this case."}}
{"actor":{"display_login":"asthasr"}}