{"action":"closed","issue":{"url":"https://api.github.com/repos/danielearwicker/knockout.clear/issues/1","labels_url":"https://api.github.com/repos/danielearwicker/knockout.clear/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/danielearwicker/knockout.clear/issues/1/comments","events_url":"https://api.github.com/repos/danielearwicker/knockout.clear/issues/1/events","html_url":"https://github.com/danielearwicker/knockout.clear/issues/1","id":59158639,"number":1,"title":"ko.execute can use ko.pureComputed internally","user":{"login":"mbest","id":1230364,"avatar_url":"https://avatars.githubusercontent.com/u/1230364?v=3","gravatar_id":"","url":"https://api.github.com/users/mbest","html_url":"https://github.com/mbest","followers_url":"https://api.github.com/users/mbest/followers","following_url":"https://api.github.com/users/mbest/following{/other_user}","gists_url":"https://api.github.com/users/mbest/gists{/gist_id}","starred_url":"https://api.github.com/users/mbest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbest/subscriptions","organizations_url":"https://api.github.com/users/mbest/orgs","repos_url":"https://api.github.com/users/mbest/repos","events_url":"https://api.github.com/users/mbest/events{/privacy}","received_events_url":"https://api.github.com/users/mbest/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-26T22:56:14Z","updated_at":"2015-02-28T11:41:54Z","closed_at":"2015-02-28T11:41:54Z","body":"If you use `ko.pureComputed` within `ko.execute`, you can optimize the code in a few ways:\r\n\r\n1. Rather than returning a \"pseudoComputed\", you can return the real computed. You won't have to keep track of extenders.\r\n2. The \"wake\" function just needs to create a manual subscription on the internal pureComputed to awaken it.\r\n3. The internal pureComputed will only call the `evaluator` if any dependencies have changed, even when awakening, possibly avoiding unnecessary AJAX calls."}}