{"action":"opened","issue":{"url":"https://api.github.com/repos/Polymer/lit-html/issues/484","repository_url":"https://api.github.com/repos/Polymer/lit-html","labels_url":"https://api.github.com/repos/Polymer/lit-html/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/lit-html/issues/484/comments","events_url":"https://api.github.com/repos/Polymer/lit-html/issues/484/events","html_url":"https://github.com/Polymer/lit-html/issues/484","id":358406726,"node_id":"MDU6SXNzdWUzNTg0MDY3MjY=","number":484,"title":"async-replace - Not working correctly when the directive is called with the same iterator","user":{"login":"ManRueda","id":2576444,"node_id":"MDQ6VXNlcjI1NzY0NDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2576444?v=4","gravatar_id":"","url":"https://api.github.com/users/ManRueda","html_url":"https://github.com/ManRueda","followers_url":"https://api.github.com/users/ManRueda/followers","following_url":"https://api.github.com/users/ManRueda/following{/other_user}","gists_url":"https://api.github.com/users/ManRueda/gists{/gist_id}","starred_url":"https://api.github.com/users/ManRueda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManRueda/subscriptions","organizations_url":"https://api.github.com/users/ManRueda/orgs","repos_url":"https://api.github.com/users/ManRueda/repos","events_url":"https://api.github.com/users/ManRueda/events{/privacy}","received_events_url":"https://api.github.com/users/ManRueda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-09T19:57:42Z","updated_at":"2018-09-09T19:57:42Z","closed_at":null,"author_association":"NONE","body":"The `async-replace` directive has a issue when its called multiple times with the same iterator at the same time that the iterator emits a new value. It's not keeping track of the iterator correctly and it restart on each call.\r\n\r\nLike `async-append` it has some logic to handle this case but it not working correctly (it works on `async-append`).\r\n\r\nExample of the issue: https://jsfiddle.net/ManRueda/ra5sb91j/8/\r\n\r\nI think a found a solution to the problem and create a test for the case. "}}
{"actor":{"display_login":"ManRueda"}}