{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/templating-resources/issues/253","repository_url":"https://api.github.com/repos/aurelia/templating-resources","labels_url":"https://api.github.com/repos/aurelia/templating-resources/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating-resources/issues/253/comments","events_url":"https://api.github.com/repos/aurelia/templating-resources/issues/253/events","html_url":"https://github.com/aurelia/templating-resources/issues/253","id":178420127,"number":253,"title":"@computedFrom('dependencyProp') triggers property evaluation twice for each change in dependencyProp","user":{"login":"m-andrew-albright","id":4950445,"avatar_url":"https://avatars.githubusercontent.com/u/4950445?v=3","gravatar_id":"","url":"https://api.github.com/users/m-andrew-albright","html_url":"https://github.com/m-andrew-albright","followers_url":"https://api.github.com/users/m-andrew-albright/followers","following_url":"https://api.github.com/users/m-andrew-albright/following{/other_user}","gists_url":"https://api.github.com/users/m-andrew-albright/gists{/gist_id}","starred_url":"https://api.github.com/users/m-andrew-albright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-andrew-albright/subscriptions","organizations_url":"https://api.github.com/users/m-andrew-albright/orgs","repos_url":"https://api.github.com/users/m-andrew-albright/repos","events_url":"https://api.github.com/users/m-andrew-albright/events{/privacy}","received_events_url":"https://api.github.com/users/m-andrew-albright/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/templating-resources/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"jdanyow","id":1306747,"avatar_url":"https://avatars.githubusercontent.com/u/1306747?v=3","gravatar_id":"","url":"https://api.github.com/users/jdanyow","html_url":"https://github.com/jdanyow","followers_url":"https://api.github.com/users/jdanyow/followers","following_url":"https://api.github.com/users/jdanyow/following{/other_user}","gists_url":"https://api.github.com/users/jdanyow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdanyow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdanyow/subscriptions","organizations_url":"https://api.github.com/users/jdanyow/orgs","repos_url":"https://api.github.com/users/jdanyow/repos","events_url":"https://api.github.com/users/jdanyow/events{/privacy}","received_events_url":"https://api.github.com/users/jdanyow/received_events","type":"User","site_admin":false},"assignees":[{"login":"jdanyow","id":1306747,"avatar_url":"https://avatars.githubusercontent.com/u/1306747?v=3","gravatar_id":"","url":"https://api.github.com/users/jdanyow","html_url":"https://github.com/jdanyow","followers_url":"https://api.github.com/users/jdanyow/followers","following_url":"https://api.github.com/users/jdanyow/following{/other_user}","gists_url":"https://api.github.com/users/jdanyow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdanyow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdanyow/subscriptions","organizations_url":"https://api.github.com/users/jdanyow/orgs","repos_url":"https://api.github.com/users/jdanyow/repos","events_url":"https://api.github.com/users/jdanyow/events{/privacy}","received_events_url":"https://api.github.com/users/jdanyow/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-21T18:02:35Z","updated_at":"2016-10-03T11:10:50Z","closed_at":null,"body":"**I'm submitting a bug report**\r\n\r\n* **Library Version:**\r\n1.0.0\r\n\r\n\r\n**Please tell us about your environment:**\r\n* **Operating System:**\r\nWindows 8.1\r\n\r\n* **Node Version:**\r\n6.4.0\r\n\r\n* **NPM Version:**\r\n3.10.3\r\n\r\n* **JSPM OR Webpack AND Version**\r\nJSPM 0.16.39\r\n\r\n* **Browser:**\r\nall\r\n\r\n* **Language:**\r\nESNext\r\n\r\n\r\n**Current behavior:**\r\nEach time the dependency property changes, the dependent getter is evaluated twice.\r\n\r\n**Expected/desired behavior:**\r\n\r\n* **What is the expected behavior?**\r\nThe property should/could only be evaluated once.\r\n\r\n\r\n* **What is the motivation / use case for changing the behavior?**\r\nOptimization!\r\n\r\n* **GistRun Repro:**\r\nhttps://gist.run/?id=ca6a1fdea3fac12f14e239207e3395b7"},"comment":{"url":"https://api.github.com/repos/aurelia/templating-resources/issues/comments/251081322","html_url":"https://github.com/aurelia/templating-resources/issues/253#issuecomment-251081322","issue_url":"https://api.github.com/repos/aurelia/templating-resources/issues/253","id":251081322,"user":{"login":"jdanyow","id":1306747,"avatar_url":"https://avatars.githubusercontent.com/u/1306747?v=3","gravatar_id":"","url":"https://api.github.com/users/jdanyow","html_url":"https://github.com/jdanyow","followers_url":"https://api.github.com/users/jdanyow/followers","following_url":"https://api.github.com/users/jdanyow/following{/other_user}","gists_url":"https://api.github.com/users/jdanyow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdanyow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdanyow/subscriptions","organizations_url":"https://api.github.com/users/jdanyow/orgs","repos_url":"https://api.github.com/users/jdanyow/repos","events_url":"https://api.github.com/users/jdanyow/events{/privacy}","received_events_url":"https://api.github.com/users/jdanyow/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T11:10:50Z","updated_at":"2016-10-03T11:10:50Z","body":"What's happening is the property it depends on is updated, triggering the computed logic to read the property (execution 1) to find out if the property changed. \r\n\r\nIf it did change, the computed logic publishes the change to it's subscribers (the interpolation binding). The interpolation binding evaluates it's expression (execution 2) to render the interpolated text."}}
{"actor":{"display_login":"jdanyow"}}