{"action":"created","issue":{"url":"https://api.github.com/repos/alexrainman/CarouselView/issues/75","repository_url":"https://api.github.com/repos/alexrainman/CarouselView","labels_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/75/comments","events_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/75/events","html_url":"https://github.com/alexrainman/CarouselView/issues/75","id":215311311,"number":75,"title":"Dynamically Changing Carousel Doesn't Load Threads","user":{"login":"ahoefling","id":17751436,"avatar_url":"https://avatars2.githubusercontent.com/u/17751436?v=3","gravatar_id":"","url":"https://api.github.com/users/ahoefling","html_url":"https://github.com/ahoefling","followers_url":"https://api.github.com/users/ahoefling/followers","following_url":"https://api.github.com/users/ahoefling/following{/other_user}","gists_url":"https://api.github.com/users/ahoefling/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoefling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoefling/subscriptions","organizations_url":"https://api.github.com/users/ahoefling/orgs","repos_url":"https://api.github.com/users/ahoefling/repos","events_url":"https://api.github.com/users/ahoefling/events{/privacy}","received_events_url":"https://api.github.com/users/ahoefling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-20T00:55:25Z","updated_at":"2017-03-22T02:15:09Z","closed_at":null,"body":"**Problem**\r\nI am using the CarouselView as an Image Carousel with a camera integration library that allows the users to take photos and dynamically add it to the Carousel. I have noticed cached threading issues when I call `InsertPage` where it will show duplicate items when all are unique. This error sometimes goes away when I dynamically add n+1 items. See example below for details of problem\r\n\r\n**Example Test Case**\r\n1. Add first carousel item (no problems)\r\n2. Add second carousel item (n+1 is a duplicate of n)\r\n3. Add third Carousel item (n, n+1 are correct and n+2 is a duplicate of n+1)\r\n4. Add fourth Carousel item (n, n+1, n+2 are correct and n+3 is a duplicate of n+2)\r\n...\r\npattern continues for all items added\r\n\r\n**Workaround**\r\nA work around to this problem is to re-build the ItemsSource every time I want to add an item `InsertPage` to the ItemsSource. What I will do is remove all items from the CarouselView via `RemovePage` and then re-build the ItemsSrouce using `InsertPage`. This change has appeared to resolve the issue."},"comment":{"url":"https://api.github.com/repos/alexrainman/CarouselView/issues/comments/288277854","html_url":"https://github.com/alexrainman/CarouselView/issues/75#issuecomment-288277854","issue_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/75","id":288277854,"user":{"login":"ahoefling","id":17751436,"avatar_url":"https://avatars2.githubusercontent.com/u/17751436?v=3","gravatar_id":"","url":"https://api.github.com/users/ahoefling","html_url":"https://github.com/ahoefling","followers_url":"https://api.github.com/users/ahoefling/followers","following_url":"https://api.github.com/users/ahoefling/following{/other_user}","gists_url":"https://api.github.com/users/ahoefling/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoefling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoefling/subscriptions","organizations_url":"https://api.github.com/users/ahoefling/orgs","repos_url":"https://api.github.com/users/ahoefling/repos","events_url":"https://api.github.com/users/ahoefling/events{/privacy}","received_events_url":"https://api.github.com/users/ahoefling/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T02:15:09Z","updated_at":"2017-03-22T02:15:09Z","body":"@alexrainman I have a few deadlines I am trying to hit with my current project. I am hoping to get you a demo project by the weekend. I apologize for the delay on this and hope it isn't that big of a deal."}}
{"actor":{"display_login":"ahoefling"}}